-
Notifications
You must be signed in to change notification settings - Fork 7
/
gitconfig
31 lines (28 loc) · 896 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
24
25
26
27
28
29
30
31
[user]
name = Sam Livingston-Gray
email = [email protected]
[branch]
autosetuprebase = always
sort=-committerdate
[core]
excludesfile = ~/.gitignore_global
attributesfile = /Users/sam/.gitattributes
[diff]
noprefix = true
[alias]
reword = commit --amend --only
fixup = commit --amend --no-edit
ff = merge --ff-only
mg = merge --no-ff
nop = commit --allow-empty
noop = commit --allow-empty
whoami = blame
##### Better `git diff` output (git calls this 'hunk headers' because lolgit)
# Swiped from: https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
[diff "rspec"]
xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario)[ \t].*)$"
# Swiped from: https://gist.github.com/ruediger/5647207#gistcomment-2012538
[diff "ecmascript"]
xfuncname = "^((.*function.*)|([ \t]+it\\(.*))$"
[init]
defaultBranch = main