1
0
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:
Holger Just 2025-02-15 11:34:53 +01:00
parent 97ae98280f
commit 70b87af0b2
No known key found for this signature in database
3 changed files with 22 additions and 2 deletions

13
.gitattributes_global Normal file
View 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

View File

@ -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]

View File

@ -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]