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