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