-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
48 lines (39 loc) · 1.65 KB
/
dot_gitconfig.tmpl
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
[user]
name = {{ .name }}
email = {{ .email }}
[alias]
st = status -sb
# lg from https://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git/34467298#34467298
lg = lg1
lg1 = lg1-specific --all
lg2 = lg2-specific --all
lg3 = lg3-specific --all
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
lb = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
sync = "!f() { git fetch --tags && git pull && git push; };f"
sheap = sync
[pull]
rebase = true
[push]
autoSetupRemote = true
[rebase]
autosquash = true
autoStash = true
[diff]
noprefix = true
[core]
{{- if eq .chezmoi.hostname "devbox" }}
hooksPath = /devbox/support/default_githooks
{{- end }}
{{- if lookPath "delta" }}
pager = delta --diff-so-fancy
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
[diff]
colorMoved = default
{{- end }}