]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
2f1ee7afce180aed06e31f5ce2839b5245cba1d9
[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         tag = 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         dc = diff --cached
31         s  = status
32         st = status
33         l  = log
34         ls = log --stat
35         lp = log -p
36         glog = log --pretty=oneline --graph --all
37         a  = add
38         ap = add -p
39         co = checkout
40         b  = branch -av
41         br = branch -av
42         m  = merge
43         me = merge
44         f  = fetch
45         fe = fetch
46         t  = tag
47         p  = push
48         pu = push
49         ru = remote update
50         fs = fsck --strict --full
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 # Allow diffing of PDF files. `pdftotext-` is a wrapper around pdftotext which
60 # writes to stdout.
61 [diff "pdf"]
62         textconv = pdftotext-
63
64 [merge]
65 IF(OS, darwin)
66         tool = opendiff
67 FI
68 IF(OS, debian)
69         tool = vimdiff
70 FI
71
72 [format]
73         # When using git format-patch use threads and add all patches as
74         # replies to the first one.
75         thread = shallow
76
77 # vim: ft=gitconfig