File tree 2 files changed +47
-9
lines changed
2 files changed +47
-9
lines changed Original file line number Diff line number Diff line change
1
+
2
+ ############
3
+ # Identity #
4
+ ############
5
+ [github]
6
+ user = johnlettman
7
+
8
+ [user]
9
+ name = John P. Lettman
10
+
11
+ signingkey = 8CE505CF86B53CC3
12
+
13
+ # Canonical identity override
14
+ # occurs for any repositories within ~/repos/canonical
15
+ [includeIf "gitdir:~/repos/canonical/**"]
16
+ path = .gitconfig.canonical
17
+
18
+ #############
19
+ # Interface #
20
+ #############
1
21
[color]
2
22
ui = auto
3
23
diff = auto
6
26
interactive = auto
7
27
status = auto
8
28
9
- [github]
10
- user = johnlettman
29
+ [color "grep"]
30
+ match = cyan bold
31
+ selected = blue
32
+ context = normal
33
+ filename = magenta
34
+ linenumber = green
35
+ separator = yellow
36
+ function = blue
11
37
12
- [user]
13
- name = John P. Lettman
14
-
15
- signingkey = 8CE505CF86B53CC3
38
+ [pretty]
39
+ line = "%C(auto)%h %<|(60,trunc)%s %C(green)%ad%C(auto)%d"
40
+ detail = "%C(auto)%h %s%n %C(yellow)by %C(blue)%an %C(magenta)<%ae> [%G?] %C(green)%ad%n %C(auto)%d%n"
16
41
17
42
[log]
18
43
date = auto:human
19
44
20
45
[commit]
46
+ gpgsign = true
21
47
verbose = true
22
48
23
- [includeIf "gitdir:~/repos/canonical/**"]
24
- path = .gitconfig.canonical
25
-
26
49
50
+ ######################
51
+ # Remote URL aliases #
52
+ ######################
27
53
[url "git+ssh://
[email protected] /"]
28
54
insteadof = lp:
29
55
35
61
pushInsteadOf = "http://github.com/"
36
62
pushInsteadOf = "gh:"
37
63
64
+ ###################
65
+ # Command aliases #
66
+ ###################
38
67
[alias]
39
68
b = branch -vva
40
69
c = commit
62
91
63
92
# yadm untracked
64
93
untracked = !"f() { git status --porcelain=v1 -zunormal | xargs -0n1 printf \"%s\\n\" | grep -E '^\\?\\? \\.' | cut -c4-; }; f"
94
+
95
+
96
+ linecredit = ! "lc() { git ls-tree --name-only -z -r HEAD | xargs -0 -n1 git diff --no-index --numstat /dev/null 2>/dev/null | grep -v '^-' | cut -f 3- | cut -d ' ' -f 3- | xargs -n1 git blame --line-porcelain | grep '^author ' | cut -d ' ' -f 2- | sort | uniq -c | sort -nr; }; lc"
97
+ credit = shortlog -sn
Original file line number Diff line number Diff line change 10
10
.\#*
11
11
\#*\#
12
12
13
+ ###########
14
+ # Cookies #
15
+ ###########
16
+ .gitcookies
17
+
13
18
##########
14
19
# Python #
15
20
##########
You can’t perform that action at this time.
0 commit comments