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