-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
57 lines (57 loc) · 1.81 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
[user]
name = Ahmad Suhendri
email = ahmadsoe@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore
[color]
ui = auto
[color "status"]
added = yellow
changed = green
untracked = cyan
[url "https://"]
insteadOf = git://
[github]
user = ahmadsoe
[push]
default = current
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
[diff]
compactionHeuristic = true
[mergetool]
keepBackup = false
[merge]
tool = vimdiff
conflictstyle = diff3
[hub]
protocol = git
[alias]
# the SHA to compare diffs against
review-base = !git merge-base HEAD \"${review_base:-master}\"
# list files which have changed since review_base
files = !git diff --name-only $(git review-base)
# Same as above, but with a diff stat instead of just names
# (better for interactive use)
stat = !git diff --stat $(git review-base)
# split-diff style review using vim-fugitive Gdiff
review = !$EDITOR -p $(git files) +\"tabdo Gvdiffsplit ${review_base:-master}\" +\"let g:gitgutter_diff_base = '${review_base:-master}'\"
reviewone = !$EDITOR -p +\"tabdo Gvdiffsplit ${review_base:-master}\" +\"let g:gitgutter_diff_base = '${review_base:-master}'\"
reviewf = !$EDITOR -p $(git files | fzf -m --reverse --height 40%) +\"tabdo Gvdiffsplit ${review_base:-master}\" +\"let g:gitgutter_diff_base = '${review_base:-master}'\"
# For when the diff is too big to review with :Gdiff
diff-review = !git diff $(git review-base)
zip-update = !git archive -o update.zip HEAD $(git diff --name-only HEAD^ --diff-filter=ACMRTUXB)