chiark / gitweb /
dot/gitconfig.in: Support the `scissors' convention in incoming mail.
[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         follow = true
38         mailmap = true
39
40 [rebase]
41         autosquash = true
42
43 [push]
44         default = matching
45         followTags = true
46
47 [format]
48         headers = "Organization: Straylight/Edgeware\n"
49         from = Mark Wooding <@email@>
50         coverletter = auto
51         thread = shallow
52         signature = "[mdw]"
53         outputdirectory = p/
54
55 [color]
56         ui = auto
57
58 [color "diff"]
59         plain = normal
60         meta = bold
61         new = green
62         old = red
63         commit = bold yellow
64         whitespace = reverse red
65
66 [color "interactive"]
67         prompt = bold yellow
68         header = bold
69         help = green
70         error = bold red
71
72 [color "status"]
73         header = bold
74         added = bold green
75         changed = bold blue
76         untracked = bold red
77
78 [color "branch"]
79         current = bold
80         local = normal
81         remote = cyan
82
83 [color "grep"]
84         external = --color=always
85
86 [column]
87         ui = auto column dense
88
89 [pager]
90         log = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
91         show = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
92         diff = perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | mdw-pager
93
94 [alias]
95         egrep = "grep -E"
96         graph = "log --pretty=oneline --abbrev-commit --graph"
97         release = !"sh -e -c ' \
98                 [ $# -gt 0 ] || { \
99                   echo >&2 \"usage: git release TAG [OPTS]\"; \
100                   exit 1; \
101                 }; \
102                 git tag -as -m \"Release $1.\" \"$@\"' release"
103         amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
104         spaces = !"sh -e -c 'git ls-files -z \"$@\"| \
105                 xargs -0r space -cv' spaces"
106         files = "ls-files --exclude-standard"
107         unstg = !"sh -e -c ' \
108                 : ${GIT_DIR=$(git rev-parse --git-dir)}; \
109                 if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \
110                 for branch; do \
111                   rmdir \"$GIT_DIR/patches/$branch/patches\"; \
112                   rm -rf \"$GIT_DIR/patches/$branch\"; \
113                   git for-each-ref -s \
114                     --format \"git update-ref -d %(refname) %(objectname)\" \
115                     \"refs/patches/$branch\" \"refs/bases/$branch\" | \
116                     sh -e; \
117                 done' unstg"
118
119 [rerere]
120         enabled = yes
121         autoupdate = yes
122
123 [stgit]
124         autoresolved = yes
125         smtpdelay = 0
126
127 [mail "alias"]
128         git = git@vger.kernel.org
129         mdw = mdw@distorted.org.uk
130
131 [sendemail]
132         from = Mark Wooding <mdw@distorted.org.uk>
133         aliasesfile = @profile@/dot/mailrc
134         aliasfiletype = mailrc
135         chainreplyto = no
136         thread = no
137         signedoffbycc = yes
138         suppresscc = self
139
140 [mailinfo]
141         scissors = true
142
143 [gui]
144         fontui = -family Sans -size 10
145         fontdiff = -family Fixed -size 13
146
147 [http]
148         cookiefile = @home@/.gitcookies