summaryrefslogtreecommitdiff
path: root/.gitconfig
blob: f92d30f91bc31f82c3242449aade94ba0ed21262 (plain)
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
[user]
	name = Tobias Klauser
	email = tklauser@distanz.ch
	signingkey = B5510F47

[core]
	abbrev = 12
	whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
	excludesfile = ~/.gitignore

[alias]
	amend = commit --amend --date=now
	co = checkout
	ca = commit --amend
	ci = commit
	br = branch
	d = diff
	dc = diff --cached
	dist = "!git archive --format=tar -v --prefix=$(git describe HEAD)/ $(git describe HEAD) | bzip2 -9v > ../$(git describe HEAD).tar.bz2"
	ds = diff --stat
	fixes = show --pretty=fixes -s
	ll = log --decorate --graph --pretty=oneline
	lp = log -p
	ls = ls-files
	pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
	pushf = push --force-with-lease
	recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
	ri = rebase --interactive --autosquash
	s = status -s
	st = status
	today = commit --amend --date=now --no-edit
	up = pull --rebase --autostash --prune origin master
	cr = codereview
	change = codereview change
	gofmt = codereview gofmt
	mail = codereview mail -trust
	pending = codereview pending
	submit = codereview submit
	sync = codereview sync

[pretty]
	fixes = Fixes: %h (\"%s\")
	commit = %h (\"%s\")

[color]
	ui = true
	diff = auto
	branch = auto
	status = auto

[color "diff"]
	whitespace = red reverse

[fetch]
	prune = true

[push]
	default = matching

[pull]
	ff = only

[merge]
	tool = vimdiff

[grep]
	lineNumber = true

[remote "origin"]
	prune = true

[sendemail]
	suppresscc = self
	bcc = Tobias Klauser <tklauser@distanz.ch>

[stash]
	showPatch = true

[tag]
	sort = version:refname

[versionsort]
	prereleaseSuffix = -rc
[http]
	cookiefile = ~/.gitcookies

[includeIf "gitdir:**/cilium.io/.git"]
	path = ~/.config/git/cilium.io
[includeIf "gitdir:**/ebpf.io/.git"]
	path = ~/.config/git/cilium.io
[includeIf "gitdir:**/isovalent/*/"]
	path = ~/.config/git/isovalent.com
[includeIf "gitdir:**/covalentio/*/"]
	path = ~/.config/git/isovalent.com
[includeIf "gitdir:**/cilium/*/"]
	path = ~/.config/git/cilium.io
[includeIf "gitdir:**/linux/.git"]
	path = ~/.config/git/with-signoff-hook
[includeIf "gitdir:**/netsniff-ng/.git"]
	path = ~/.config/git/with-signoff-hook