Skip to content

Commit

Permalink
adds .gitattributes to enable Ruby-awareness
Browse files Browse the repository at this point in the history
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

:)
  • Loading branch information
fxn committed Mar 16, 2016
1 parent bf6b654 commit 23561ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.rb diff=ruby
*.gemspec diff=ruby

0 comments on commit 23561ce

Please sign in to comment.