mirror of
https://github.com/meineerde/dotfiles.git
synced 2025-10-17 19:41:01 +00:00
Improve git diffs for various code files
https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
This commit is contained in:
parent
97ae98280f
commit
70b87af0b2
13
.gitattributes_global
Normal file
13
.gitattributes_global
Normal file
@ -0,0 +1,13 @@
|
||||
*.css diff=css
|
||||
|
||||
*.html diff=html
|
||||
*.xhtml diff=html
|
||||
|
||||
*.md diff=markdown
|
||||
|
||||
*.py diff=python
|
||||
|
||||
*.rb diff=ruby
|
||||
*.rake diff=ruby
|
||||
*.gemspec diff=ruby
|
||||
*_spec.rb diff=rspec
|
||||
@ -18,12 +18,15 @@
|
||||
[core]
|
||||
autocrlf = false
|
||||
excludesfile = ~/.gitignore_global
|
||||
attributesfile = ~/.gitattributes_global
|
||||
[color]
|
||||
branch = auto
|
||||
diff = auto
|
||||
grep = auto
|
||||
interactive = auto
|
||||
ui = auto
|
||||
[diff "rspec"]
|
||||
xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario)[ \t].*)$"
|
||||
[github]
|
||||
user = meineerde
|
||||
[fetch]
|
||||
|
||||
8
Rakefile
8
Rakefile
@ -30,8 +30,12 @@ namespace :install do
|
||||
files :ruby, ".irbrc", ".config/irb/*.rb", ".config/solargraph/*.yml"
|
||||
|
||||
dot_files = %w[bin]
|
||||
dot_files += %w[.bash_profile .bashrc .gemrc .gitignore_global .ackrc .rvmrc.dotfile]
|
||||
dot_files += %w[.gitconfig .gitconfig_holgerjust.de .gitconfig_plan.io]
|
||||
dot_files += %w[.bash_profile .bashrc .gemrc .ackrc .rvmrc.dotfile]
|
||||
dot_files += %w[
|
||||
.gitconfig .gitconfig_holgerjust.de .gitconfig_plan.io
|
||||
.gitignore_global
|
||||
.gitattributes_global
|
||||
]
|
||||
files :dot, *dot_files
|
||||
|
||||
files :vim, *%w[.vim .vimrc]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user