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