-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
73 lines (59 loc) · 1.74 KB
/
.gitconfig
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
[user]
useConfigOnly = true
[credential]
helper = cache
[includeIf "gitdir:~/work/"]
path = ~/work/.gitconfig
[core]
; pager = $HOME/bin/diff-highlight | less
pager = delta
trustctime = false
editor = nvim
[color]
ui = auto
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
commit = green bold
meta = yellow
frag = cyan bold
old = red bold
new = green bold
whitespace = red reverse
[diff]
colorMoved = default
[interactive]
; diffFilter = diff-highlight
diffFilter = delta --color-only
[commit]
template = ~/.gitmessage
[delta]
features = line-numbers decorations
line-numbers = true
inspect-raw-lines = false # for colorMoved to work properly
syntax-theme = Dracula
plus-style = syntax "#003800"
minus-style = syntax "#3f0001"
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
hunk-header-decoration-style = cyan box ul
[delta "line-numbers"]
line-numbers-left-style = cyan
line-numbers-right-style = cyan
line-numbers-minus-style = 124
line-numbers-plus-style = 28
[http]
postBuffer = 524288000
[alias]
find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'"
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true