mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
adds .gitattributes to enable Ruby-awareness
This configuration improves git diff, git log -p -W, git grep -p, ..., and allows to inspect the history of a method with a command like git log -L:new_constants_in:activesupport/lib/active_support/dependencies.rb Let me also appeal to authority by saying it is present in the Ruby repository as well https://github.com/ruby/ruby/blob/trunk/.gitattributes :)
This commit is contained in:
parent
bf6b65432b
commit
23561ce655
1 changed files with 2 additions and 0 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.rb diff=ruby
|
||||
*.gemspec diff=ruby
|
Loading…
Reference in a new issue