]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
f05576ab314d052633f560ede759f94214a94895
[config/dotfiles.git] / gitconfig.m4
1 # Global Git configuration file.
2
3
4 dnl Load m4 macros.
5 include(../lib.m4)
6
7 [user]
8         name = Simon Ruderich
9         email = simon@ruderich.org
10
11 [color]
12         ui = auto
13
14 [core]
15         editor = vim
16         # Can't use ~/ because of older git versions.
17         excludesfile = GITIGNORE
18
19 # Use pager for the following commands.
20 [pager]
21         status = yes
22         clean = yes
23
24 [alias]
25         # Shortcuts for often used commands.
26         c  = commit -v
27         ci = commit -v
28         d  = diff
29         di = diff
30         s  = status
31         st = status
32         l  = log
33         ls = log --stat
34         lp = log -p
35         glog = log --pretty=oneline --graph --all
36         a  = add
37         ap = add -p
38         co = checkout
39         b  = branch -av
40         br = branch -av
41         m  = merge
42         me = merge
43         f  = fetch
44         fe = fetch
45         t  = tag
46         p  = push
47         pu = push
48         ru = remote update
49         fs = fsck --strict --full
50         ss = stash save
51         sa = stash apply
52         sl = stash list
53
54 [diff]
55         # Detect copies and renames.
56         renames = copy
57
58 [merge]
59 IF(OS, darwin)
60         tool = opendiff
61 FI
62 IF(OS, debian)
63         tool = vimdiff
64 FI
65
66 [format]
67         # When using git format-patch use threads and add all patches as
68         # replies to the first one.
69         thread = shallow
70
71 # vim: ft=gitconfig