Skip to content

Commit 86724b0

Browse files
committed
git: sign commits, add ignores
1 parent 42d2f35 commit 86724b0

File tree

2 files changed

+47
-9
lines changed

2 files changed

+47
-9
lines changed

git/config

+42-9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
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+
#############
121
[color]
222
ui = auto
323
diff = auto
@@ -6,24 +26,30 @@
626
interactive = auto
727
status = auto
828

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
1137

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"
1641

1742
[log]
1843
date = auto:human
1944

2045
[commit]
46+
gpgsign = true
2147
verbose = true
2248

23-
[includeIf "gitdir:~/repos/canonical/**"]
24-
path = .gitconfig.canonical
25-
2649

50+
######################
51+
# Remote URL aliases #
52+
######################
2753
[url "git+ssh://[email protected]/"]
2854
insteadof = lp:
2955

@@ -35,6 +61,9 @@
3561
pushInsteadOf = "http://github.com/"
3662
pushInsteadOf = "gh:"
3763

64+
###################
65+
# Command aliases #
66+
###################
3867
[alias]
3968
b = branch -vva
4069
c = commit
@@ -62,3 +91,7 @@
6291

6392
# yadm untracked
6493
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

git/ignore

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
.\#*
1111
\#*\#
1212

13+
###########
14+
# Cookies #
15+
###########
16+
.gitcookies
17+
1318
##########
1419
# Python #
1520
##########

0 commit comments

Comments
 (0)