]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
9ef037614fa79283d3d661dfa4739174e3ce69e5
[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 --patience
29         di = diff --patience
30         dc = diff --patience --cached
31         s  = status
32         st = status
33         l  = log
34         ls = log --stat
35         lp = log -p --patience
36         glog = log --pretty=oneline --graph --all
37         a  = add
38         ap = add -p
39         au = add -u
40         co = checkout
41         b  = branch -av
42         br = branch -av
43         m  = merge
44         me = merge
45         f  = fetch
46         fe = fetch
47         t  = tag
48         p  = push
49         pu = push
50         ru = remote update
51         fs = fsck --strict --full
52         ss = stash save
53         ssk = stash save --keep-index
54         sa = stash apply
55         sl = stash list
56         fp = format-patch
57
58 [diff]
59         # Detect copies and renames.
60         renames = copy
61
62 # Allow diffing of PDF files. `pdftotext-` is a wrapper around pdftotext which
63 # writes to stdout.
64 [diff "pdf"]
65         textconv = pdftotext-
66 [diff "sqlite"]
67         textconv = sqlite3dump
68
69 [merge]
70 IF(OS, darwin)
71         tool = opendiff
72 FI
73 IF(OS, debian)
74         tool = vimdiff
75 FI
76
77 [format]
78         # When using git format-patch use threads and add all patches as
79         # replies to the first one.
80         thread = shallow
81
82 # vim: ft=gitconfig