]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
*: License under GPL v3+.
[config/dotfiles.git] / gitconfig.m4
1 # Global Git configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 dnl Load m4 macros.
20 include(../lib.m4)
21
22 [user]
23         name = Simon Ruderich
24         email = simon@ruderich.org
25
26 [color]
27         ui = auto
28
29 [core]
30         editor = vim
31         # Can't use ~/ because of older git versions.
32         excludesfile = GITIGNORE
33
34 # Use pager for the following commands.
35 [pager]
36         status = yes
37         tag = yes
38
39 [alias]
40         # Shortcuts for often used commands.
41         c  = commit -v
42         ci = commit -v
43         d  = diff --patience
44         di = diff --patience
45         dc = diff --patience --cached
46         s  = status
47         st = status
48         l  = log
49         ls = log --stat
50         lp = log -p --patience
51         glog = log --pretty=oneline --graph --all
52         a  = add
53         ap = add -p
54         au = add -u
55         co = checkout
56         b  = branch -av
57         br = branch -av
58         m  = merge
59         me = merge
60         f  = fetch
61         fe = fetch
62         t  = tag
63         p  = push
64         pu = push
65         ru = remote update
66         fs = fsck --strict --full
67         ss = stash save
68         ssk = stash save --keep-index
69         sa = stash apply
70         sl = stash list
71         fp = format-patch
72
73 [diff]
74         # Detect copies and renames.
75         renames = copy
76
77 # Allow diffing of some binary files.
78 # `pdftotext-` is a wrapper around pdftotext which writes to stdout.
79 # `sqlite3dump` is a wrapper calling `sqlite3 database-file .dump`.
80 [diff "gzip"]
81         textconv = gzip -d -c
82 [diff "pdf"]
83         textconv = pdftotext-
84 [diff "sqlite"]
85         textconv = sqlite3dump
86
87 [merge]
88 IF(OS, darwin)
89         tool = opendiff
90 FI
91 IF(OS, debian)
92         tool = vimdiff
93 FI
94
95 [format]
96         # When using git format-patch use threads and add all patches as
97         # replies to the first one.
98         thread = shallow
99
100 # vim: ft=gitconfig