-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
23 lines (21 loc) · 941 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[user]
email = [email protected]
name = Matt Wisniewski
[color]
ui = auto
[alias]
tree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
recent = for-each-ref --sort=-committerdate --count=10 refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
origin-branch = "!f() { \
git branch -a --contains $1 --sort='authordate' --format='%(refname:short)' | head -n1; \
}; f"
authors = "!f() { \
if [[ '$1' == '' ]]; then \
dir="$PWD"; \
elif [[ ${1:0:1} == '/' ]]; then \
dir="$1"; \
else \
dir="$GIT_PREFIX/$1/"; \
fi; \
git shortlog -n -s -- $dir; \
}; f"