Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile
[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 [alias]
78 egrep = "grep -E"
79 patch = "format-patch -o p -s"
80 graph = "log --pretty=oneline --abbrev-commit --graph"
81 release = !"sh -e -c ' \
82 [ $# -gt 0 ] || { \
83 echo >&2 \"usage: git release TAG [OPTS]\"; \
84 exit 1; \
85 }; \
86 git tag -as -m \"Release $1.\" \"$@\"' release"
87 amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
88 spaces = !"sh -e -c 'git ls-files -z \"$@\"| \
89 xargs -0r space -cv' spaces"
90 mailto = "send-email \
91 --quiet \
92 --no-chain-reply-to \
93 --no-signed-off-by-cc \
94 --to"
95 files = "ls-files --exclude-standard"
96 unstg = !"sh -e -c ' \
97 : ${GIT_DIR=$(git rev-parse --git-dir)}; \
98 if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \
99 for branch; do \
100 rmdir \"$GIT_DIR/patches/$branch/patches\"; \
101 rm -rf \"$GIT_DIR/patches/$branch\"; \
102 git for-each-ref -s \
103 --format \"git update-ref -d %(refname) %(objectname)\" \
104 \"refs/patches/$branch\" \"refs/bases/$branch\" | \
105 sh -e; \
106 done' unstg"
107
108 [rerere]
109 enabled = yes
110 autoupdate = yes
111
112 [stgit]
113 autoresolved = yes
114 smtpdelay = 0
115
116 [mail "alias"]
117 git = git@vger.kernel.org
118 mdw = mdw@distorted.org.uk
119
120 [sendemail]
121 from = Mark Wooding <mdw@distorted.org.uk>
122 aliasesfile = @profile@/dot/mailrc
123 aliasfiletype = mailrc
124 chainreplyto = no
125 signedoffbycc = yes
126 suppresscc = self
127
128 [gui]
129 fontui = -family Sans -size 10
130 fontdiff = -family Fixed -size 13