-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig.symlink
59 lines (57 loc) · 1.57 KB
/
gitconfig.symlink
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
[user]
name = Mike Ziwisky
email = [email protected]
[alias]
s = "status"
sh = "show"
st = "status"
co = "checkout"
br = "branch"
dt = "difftool"
showtool = "!showci () { rev=${1:-HEAD}; git difftool $rev~1 $rev | less -R; }; showci $1"
graph = "log --color --graph --decorate --oneline --branches --remotes --tags HEAD"
graphme = "log --color --graph --decorate --oneline HEAD"
gerrit-submit = "!bash -c ' \
local_ref=$(git symbolic-ref HEAD); \
local_name=${local_ref##refs/heads/}; \
remote=$(git config branch.\"$local_name\".remote); \
if [[ -z $remote ]]; then \
read -p \"WARN: No tracking branch -- track origin/master? [y/n] \" -n 1 -r; \
echo; \
if [[ $REPLY =~ ^[Yy]$ ]]; then \
git branch -u origin/master; \
remote=origin; \
else \
echo \"ABORTED: Track a remote branch before calling gerrit-submit\"; \
exit 1; \
fi; \
fi; \
remote_ref=$(git config branch.\"$local_name\".merge); \
remote_name=${remote_ref##refs/heads/}; \
remote_review_ref=\"refs/for/$remote_name\"; \
git push $remote HEAD:$remote_review_ref'"
[grep]
extendedRegexp = true
[gc]
auto=1
[color]
ui = true
[core]
excludesfile = /Users/mziwisky/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -R
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft --color=always "$LOCAL" "$REMOTE"
[push]
default = simple
[advice]
detachedHead = false
[init]
defaultBranch = main
[pull]
ff = only
[interactive]
diffFilter = diff-so-fancy --patch