-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
126 lines (102 loc) · 2.47 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
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
[core]
abbrev = 12
[completion]
commands = -cherry
[status]
showStash = true
[pretty]
fixes = Fixes: %h (\"%s\")
ol = %C(auto)%h %<(50,trunc)%s %d %C(green)%ar%Creset %C(blue)%<(15,trunc)%aN%Creset
mywork = %<(20,trunc)%ar %s
[user]
email = liambeguin@gmail.com
name = Liam Beguin
editor = vi
whitespace = blank-at-eol,indent-with-non-tab,trailing-space
[gui]
fontui = -family \"Terminess Powerline\" -size 12 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family \"Terminess Powerline\" -size 12 -weight normal -slant roman -underline 0 -overstrike 0
warndetachedcommit = true
spellingdictionary = none
[rebase]
abbreviateCommands = true
[help]
autocorrect = 1
[push]
default = matching
[log]
decorate = true
mailmap = true
[diff]
statGraphWidth = 72
[diff "bin"]
binary = true
textconv = hexdump -vC
[difftool]
tool = meld
prompt = false
[merge]
tool = vimdiff
[mergetool "meld"]
keepBackup = false
prompt = false
[color]
ui = true
status = auto
grep = auto
branch = auto
# Use about the same colors as usual grep
[color "grep"]
context = normal
filename = magenta
function = black bold
linenumber = green
match = red bold
selected = normal
separator = cyan
[color "branch"]
current = green
remote = red
local = normal
[grep]
lineNumber = true
[column]
ui = never
[include]
path = /home/lvb/.ssh/git-send-email.config
[alias]
last = log -n1
mt = mergetool
oneline = log --no-merges --pretty=ol
fixup = "!f() { git commit --fixup=$1; }; f"
mywork = shortlog --format=mywork \
--author='Liam Beguin' \
--author='liambeguin@gmail.com' \
--author='lvb@xiphos.com'
# Get the authors with the most commits on a given file
authors = shortlog -sn
k = "!f() { gitk $@ & }; f"
ui = "!f() { git gui $@ & }; f"
bindiff = difftool --extcmd=vbindiff
info = "!\
echo; sh -c \"git branch -vv ; \
echo; git remote -v\"; echo"
# Open git blame in vim (requires vim-fugitive)
bl = "!sh --login -c \"vi +Gblame ${1}\" "
prefix = "!\
f() { \
files=${*:-$(git diff --staged --name-only)}; \
if test -z \"$1\" && test -z \"$files\"; then \
echo \"error: No files staged\"; \
return; \
fi; \
printf 'Checking prefixes for: \n\t\\033[31m%s\\033[0m\n' \"$files\"; \
echo \"Most common prefixes are:\"; \
git log --format=%s $files \
| sed 's/\\(^.*:\\).*$/\\1/g' \
| sort \
| uniq -c \
| sort -nr \
| head -n5; \
}; f"
# vim: ft=gitconfig