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