aboutsummaryrefslogtreecommitdiff
path: root/dot_gitconfig.tmpl
blob: d21c795537e0f10792ced9f2bd59a75f6a74e7c9 (plain) (blame)
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
[user]
	name = Ryan Kavanagh
	email = rak@rak.ac
[color]
	ui = auto
[sendemail]
	smtpserver = /usr/sbin/sendmail
[alias]
	wdiff = diff --color-words
	pusha = push origin :
	lg = !"git lg1"
	lg1 = !"git lg1-specific --all"
	lg2 = !"git lg2-specific --all"
	lg3 = !"git lg3-specific --all"
	lsd = !"git lg3-specific --all --simplify-by-decoration"

	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)'

	rl = reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)'

	subrepo = !~/.local/lib/git-core/git-subrepo
	addnw=!sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
[push]
	default = simple
[url "git://anonscm.debian.org"]
	insteadOf = "git://git.debian.org"
[url "ssh://git.debian.org"]
	pushInsteadOf = "git://git.debian.org"
[rerere]
	enabled = true
[url "git@salsa.debian.org:"]
	pushInsteadOf = https://salsa.debian.org/
	insteadOf = https://salsa.debian.org/
[core]
	quotePath = false
[includeIf "gitdir:/media/t/work/packaging/"]
	path = ~/.gitconfig-debian
[diff]
	mnemonicPrefix = true
	algorithm = histogram
[diff "gpg"]
	textconv = gpg --no-tty --decrypt
[help]
	autocorrect = prompt
[init]
	defaultBranch = master
{{ if (eq .chezmoi.os "openbsd") -}}
[safe]
	directory = /usr/src
{{- end }}