git: Add global attributes file
Thanks to this blog post: https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
This commit is contained in:
parent
586a57b761
commit
6ae1330bdf
2 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ ui = true
|
|||
colorMoved = default
|
||||
wsErrorHighlight = all
|
||||
|
||||
# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81#gistcomment-3500150
|
||||
[diff "rspec"]
|
||||
xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario|background)[ \t].*)$"
|
||||
|
||||
[merge]
|
||||
conflictStyle = diff3
|
||||
ff = only
|
||||
|
|
@ -58,6 +62,7 @@ helper = cache
|
|||
verbose = true
|
||||
|
||||
[core]
|
||||
attributesfile = ~/.gitattributes
|
||||
excludesfile = ~/.gitignore
|
||||
|
||||
[include]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue