]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
0bf7b0037f3912de7a398d3cf4e6d8edb831457a
[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. `sqlite3dump` is a wrapper calling `sqlite3 database-file
64 # .dump`.
65 [diff "pdf"]
66         textconv = pdftotext-
67 [diff "sqlite"]
68         textconv = sqlite3dump
69
70 [merge]
71 IF(OS, darwin)
72         tool = opendiff
73 FI
74 IF(OS, debian)
75         tool = vimdiff
76 FI
77
78 [format]
79         # When using git format-patch use threads and add all patches as
80         # replies to the first one.
81         thread = shallow
82
83 # vim: ft=gitconfig