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