blob: 458280d2745e7357ef5db7a93b06475f82c261fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
[user]
name = Robert Günzler
email = r@gnzler.io
; signingkey = AF6AB8C8B10436B9F61293632143BD2AAB94BCC4
signingkey = ~/.ssh/id_ed25519.pub
[gpg]
format = ssh
[sendemail]
sendmailCmd = ~/bin/msmtpq --set-from-header=on
envelopeSender = auto
annotate = true
multiEdit = true
confirm = always
[credential "smtp.mailfence.com"]
username = robert@gnzler.de
helper = !sh -c 'rbw get 68b0ea26-733a-43cd-b8f8-e8ecc98de072 | xargs printf password=%s\\n'
[credential "git.sr.ht"]
username = robertgzr
helper = !sh -c 'rbw get c7e750ea-6713-4254-90e7-6e077b552ffa | xargs printf password=%s\\n'
[credential "github.com"]
username = robertgzr
helper = !sh -c 'rbw get f94a873d-9d72-412e-a46d-53e4cd19a291 | xargs printf password=%s\\n'
[core]
excludesfile = $HOME/.config/git/ignore
filemode = false
pager = less -F
[init]
defaultBranchName = master
# templateDir = ~/.dotfiles/git/templates
[interactive]
diffFilter="diff-highlight | less -FRX --tabs=4"
[log]
date = iso-strict-local
[format]
signoff = true
coverLetter = false
[column]
ui = auto
[commit]
; template = ~/.config/git/message
gpgSign = true
verbose = true
[alias]
a = add --patch
amend = ci --amend --reuse-message=HEAD --edit
br = branch
ci = commit --trailer=signoff
co = checkout
cp = cherry-pick
dl = diff --stat
ds = diff --staged
fix = "!f() { local c=${1:-$(git fuzzy commits || :)}; test -n \"$c\" && git fixup $c && git ri $c^; }; f"
fixup = "!f() { local c=${1:-$(git fuzzy commits || :)}; test -n \"$c\" && git commit --fixup=$c; }; f"
grep = grep --break --heading --line-number
l = !tig
ls = log --graph --decorate --stat
mt = mergetool
pushf = push --force-with-lease
authors = shortlog -nse
reviewers = shortlog -nse --group=trailer:reviewed-by
ri = rebase --autostash --autosquash -i # -x 'git hook run pre-commit'
squash = "!f() { local c=${1:-$(git fuzzy commits || :)}; test -n \"$c\" && git commit --squash=$c; }; f"
st = status -sb
sw = switch
tig = !tig
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[diff]
# Detect copies as well as renames
renames = copies
renameLimit = 3210
tool = difftastic
[diff "bin"]
# Use `hexdump` to diff binary files
textconv = hexdump -v -C
renames = copies
tool = vimdiff
[difftool]
prompt = false
[pager]
difftool = true
[fetch]
prune = true
[submodule]
recurse = true
[pull]
rebase = true
autostash = true
[grep]
lineNumber = true
[merge]
log = true
defaultToUpstream = true
tool = nvimdiff
[mergetool "nvimdiff"]
conflictstyle = diff3
prompt = false
[rerere]
enabled = false
[push]
followTags = true
autoSetupRemote = true
[tag]
gpgsign = true
[safe]
directory = /var/tmp/portage/*
directory = /var/cache/distfiles/git3-src/*
[trailer "signoff"]
key = "Signed-off-by"
cmd = ~/.config/git/signoff.sh $(git config user.email)
ifmissing = add
ifexists = replace
where = end
[trailer "changetype"]
key = "Change-type"
where = start
[trailer "connects"]
key = "Connects-to"
where = start
[trailer "depends"]
key = "Depends-on"
where = start
[trailer "changelog"]
key = "Changelog-entry"
where = start
[trailer "coauthor"]
key = "Co-authored-by"
where = start
[trailer "reviewed"]
key = "Reviewed-by"
where = start
[trailer "tested"]
key = "Tested-by"
where = start
[trailer "fixes"]
key = "Fixes"
where = start
[trailer "refs"]
key = "Refs"
where = start
[include]
path = tig
[includeIf "gitdir:~/src/unikraft/**"]
path = ~/src/unikraft/.gitconfig
# url rewrites
; [url "git@github.com:"]
; insteadOf = "https://github.com/"
[url "git@git.sr.ht:"]
insteadOf = "https://git.sr.ht/"
; [url "git@bitbucket.org:"]
; insteadOf = "https://bitbucket.org/"
; [url "git@gitlab.com:"]
; insteadOf = "https://gitlab.com/"
; vim: expandtab shiftwidth=4
|