aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-03-16 11:05:41 +0100
committerXavier Noria <fxn@hashref.com>2016-03-16 11:15:22 +0100
commit23561ce655853b885f2bd8cc65bdefd4291595ab (patch)
tree5e62fe6c4481fbfd387eda779b5ee03fb2fdcba0 /.gitattributes
parentbf6b65432ba3d2765c1fcea90d9969eb87f49625 (diff)
downloadrails-23561ce655853b885f2bd8cc65bdefd4291595ab.tar.gz
rails-23561ce655853b885f2bd8cc65bdefd4291595ab.tar.bz2
rails-23561ce655853b885f2bd8cc65bdefd4291595ab.zip
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 :)
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..f6276855ce
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+*.rb diff=ruby
+*.gemspec diff=ruby