chiark / gitweb /
dot/gitconfig.in: Map author names through `.mailmap' if available.
[profile] / dot / gitconfig.in
1 ### -*-conf-*-
2 ### Git configuration
3
4 [core]
5         filemode = true
6         excludesfile = @profile@/git/gitignore
7         attributesfile = @profile@/git/attributes
8         whitespace = trailing-space,space-before-tab,indent-with-non-tab
9
10 [user]
11         name = Mark Wooding
12         email = mdw@distorted.org.uk
13         signingkey = @releasekey@
14
15 [annex]
16         sshcaching = false
17
18 [merge]
19         summary = true
20         tool = emerge
21         conflictStyle = diff3
22
23 [mergetool "emerge"]
24         path = emerge-hack
25
26 [diff]
27         renames = copies
28         renameLimit = 1024
29         wordRegex = [[:alnum:]]+|[^[:space:][:alnum:]]
30
31 [diff "lisp"]
32         xfuncname = "^((\\(|\\s*\\(def).*$)"
33
34 [log]
35         date = rfc
36         decorate = true
37         mailmap = true
38
39 [rebase]
40         autosquash = true
41
42 [push]
43         default = matching
44         followTags = true
45
46 [format]
47         headers = "Organization: Straylight/Edgeware\n"
48
49 [color]
50         ui = auto
51
52 [color "diff"]
53         plain = normal
54         meta = bold
55         new = green
56         old = red
57         commit = bold yellow
58         whitespace = reverse red
59
60 [color "interactive"]
61         prompt = bold yellow
62         header = bold
63         help = green
64         error = bold red
65
66 [color "status"]
67         header = bold
68         added = bold green
69         changed = bold blue
70         untracked = bold red
71
72 [color "branch"]
73         current = bold
74         local = normal
75         remote = cyan
76
77 [color "grep"]
78         external = --color=always
79
80 [pager]
81         log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
82         show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
83         diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
84
85 [alias]
86         egrep = "grep -E"
87         patch = "format-patch -o p -s"
88         graph = "log --pretty=oneline --abbrev-commit --graph"
89         release = !"sh -e -c ' \
90                 [ $# -gt 0 ] || { \
91                   echo >&2 \"usage: git release TAG [OPTS]\"; \
92                   exit 1; \
93                 }; \
94                 git tag -as -m \"Release $1.\" \"$@\"' release"
95         amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
96         spaces = !"sh -e -c 'git ls-files -z \"$@\"| \
97                 xargs -0r space -cv' spaces"
98         mailto = "send-email \
99                         --quiet \
100                         --no-chain-reply-to \
101                         --no-signed-off-by-cc \
102                         --to"
103         files = "ls-files --exclude-standard"
104         unstg = !"sh -e -c ' \
105                 : ${GIT_DIR=$(git rev-parse --git-dir)}; \
106                 if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \
107                 for branch; do \
108                   rmdir \"$GIT_DIR/patches/$branch/patches\"; \
109                   rm -rf \"$GIT_DIR/patches/$branch\"; \
110                   git for-each-ref -s \
111                     --format \"git update-ref -d %(refname) %(objectname)\" \
112                     \"refs/patches/$branch\" \"refs/bases/$branch\" | \
113                     sh -e; \
114                 done' unstg"
115
116 [rerere]
117         enabled = yes
118         autoupdate = yes
119
120 [stgit]
121         autoresolved = yes
122         smtpdelay = 0
123
124 [mail "alias"]
125         git = git@vger.kernel.org
126         mdw = mdw@distorted.org.uk
127
128 [sendemail]
129         from = Mark Wooding <mdw@distorted.org.uk>
130         aliasesfile = @profile@/dot/mailrc
131         aliasfiletype = mailrc
132         chainreplyto = no
133         signedoffbycc = yes
134         suppresscc = self
135
136 [gui]
137         fontui = -family Sans -size 10
138         fontdiff = -family Fixed -size 13
139
140 [http]
141         cookiefile = @home@/.gitcookies