chiark / gitweb /
el/dot-emacs.el: Apply `extend' setting to all(?) the applicable fonts.
[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 [advice]
11         ignoredHook = false
12
13 [user]
14         name = Mark Wooding
15         email = mdw@distorted.org.uk
16         signingkey = @releasekey@
17
18 [annex]
19         sshcaching = false
20
21 [merge]
22         summary = true
23         tool = emerge
24         conflictStyle = diff3
25
26 [mergetool "emerge"]
27         path = emerge-hack
28
29 [init]
30         default-branch = main
31
32 [diff]
33         renames = copies
34         renameLimit = 1024
35         wordRegex = [[:alnum:]]+|[^[:space:][:alnum:]]
36
37 [diff "lisp"]
38         xfuncname = "^((\\(|\\s*\\(def).*$)"
39
40 [log]
41         date = rfc
42         decorate = true
43         follow = true
44         mailmap = true
45
46 [rebase]
47         autosquash = true
48
49 [pull]
50         rebase = false
51
52 [push]
53         default = upstream
54         followTags = true
55
56 [format]
57         headers = "Organization: Straylight/Edgeware\n"
58         from = Mark Wooding <@email@>
59         coverletter = auto
60         thread = shallow
61         signature = "[mdw]"
62         outputdirectory = p/
63
64 [color]
65         ui = auto
66
67 [color "diff"]
68         plain = normal
69         meta = bold
70         new = green
71         old = red
72         commit = bold yellow
73         whitespace = reverse red
74
75 [color "interactive"]
76         prompt = bold yellow
77         header = bold
78         help = green
79         error = bold red
80
81 [color "status"]
82         header = bold
83         added = bold green
84         changed = bold blue
85         untracked = bold red
86
87 [color "branch"]
88         current = bold
89         local = normal
90         remote = cyan
91
92 [column]
93         ui = auto column dense
94
95 [pager]
96         diff = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager"
97         log = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager"
98         show = "if type >/dev/null 2>&1 diff-highlight; then diff-highlight; else cat; fi | mdw-pager"
99
100 [alias]
101         do = "!sh -e -c ' \
102                 quiet=; \
103                 case $#,$1 in 0, | *,*,*) ;; *,-q) quiet=--quiet; shift ;; esac; \
104                 case $quiet in ?*) ;; *) echo \"Entering toplevel\" ;; esac; \
105                 (name=\"<toplevel>\"; path=.; toplevel=$(pwd); \
106                  sha1=$(git rev-parse HEAD); \
107                  set +e; case $# in 1) eval \"$1\" ;; *) \"$@\" ;; esac); \
108                 exec git submodule $quiet foreach --recursive \"$@\"' do"
109         egrep = "grep -E"
110         graph = "log --pretty=oneline --abbrev-commit --graph"
111         release = !"sh -e -c ' \
112                 [ $# -gt 0 ] || { \
113                   echo >&2 \"usage: git release TAG [OPTS]\"; \
114                   exit 1; \
115                 }; \
116                 git tag -as -m \"Release $1.\" \"$@\"' release"
117         catchup = !"perl -e ' \
118                 use autodie qw(:all); \
119                 if (@ARGV < 2) { \
120                   print STDERR \"git catchup REMOTE REF ...\n\"; \
121                   exit 2; \
122                 } \
123                 @c = (); $m = shift @ARGV; \
124                 for my $r (@ARGV) { \
125                   my ($p, $r) = $r =~ /^([+]*)(.*)$/; \
126                   push @c, \"$p$m/$r:$r\"; \
127                 } \
128                 exec \"git\", \"push\", \".\", @c'"
129         amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
130         spaces = !"sh -e -c 'git ls-files -z \"$@\"| \
131                 xargs -0r space -cv' spaces"
132         files = "ls-files --exclude-standard"
133         unstg = !"sh -e -c ' \
134                 : ${GIT_DIR=$(git rev-parse --git-dir)}; \
135                 if [ $# -eq 0 ]; then set -- \"$(stg branch)\"; fi; \
136                 for branch; do \
137                   rmdir \"$GIT_DIR/patches/$branch/patches\"; \
138                   rm -rf \"$GIT_DIR/patches/$branch\"; \
139                   git for-each-ref -s \
140                     --format \"git update-ref -d %(refname) %(objectname)\" \
141                     \"refs/patches/$branch\" \"refs/bases/$branch\" | \
142                     sh -e; \
143                 done' unstg"
144
145 [rerere]
146         enabled = yes
147         autoupdate = yes
148
149 [stgit]
150         autoresolved = yes
151         smtpdelay = 0
152
153 [mail "alias"]
154         git = git@vger.kernel.org
155         mdw = mdw@distorted.org.uk
156
157 [sendemail]
158         from = Mark Wooding <mdw@distorted.org.uk>
159         aliasesfile = @profile@/dot/mailrc
160         aliasfiletype = mailrc
161         chainreplyto = no
162         thread = no
163         signedoffbycc = yes
164         suppresscc = self
165
166 [mailinfo]
167         scissors = true
168
169 [gui]
170         fontui = -family Sans -size 10
171         fontdiff = -family Fixed -size 13
172
173 [http]
174         cookiefile = @home@/.gitcookies