]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
3325a3c1a4950a5090ece62a136deb17494f3b73
[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         a  = add
36         ap = add -p
37         co = checkout
38         b  = branch -av
39         br = branch -av
40         m  = merge
41         me = merge
42         f  = fetch
43         fe = fetch
44         t  = tag
45         p  = push
46         pu = push
47         # Custom commands.
48         fs = fsck --strict --full
49         glog = log --pretty=oneline --graph --all
50         ru = remote update
51         ss = stash save
52         sa = stash apply
53         sl = stash list
54
55 [diff]
56         # Detect copies and renames.
57         renames = copy
58
59 [merge]
60 IF(OS, darwin)
61         tool = opendiff
62 FI
63 IF(OS, debian)
64         tool = vimdiff
65 FI
66
67 [format]
68         # When using git format-patch use threads and add all patches as
69         # replies to the first one.
70         thread = shallow
71
72 # vim: ft=gitconfig