summaryrefslogtreecommitdiff
path: root/gitattributes
diff options
context:
space:
mode:
Diffstat (limited to 'gitattributes')
-rw-r--r--gitattributes31
1 files changed, 31 insertions, 0 deletions
diff --git a/gitattributes b/gitattributes
new file mode 100644
index 0000000..c7be8d9
--- /dev/null
+++ b/gitattributes
@@ -0,0 +1,31 @@
+*_spec.rb diff=rspec
+*.erb diff=html
+
+# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
+
+*.c diff=cpp
+*.h diff=cpp
+*.c++ diff=cpp
+*.h++ diff=cpp
+*.cpp diff=cpp
+*.hpp diff=cpp
+*.cc diff=cpp
+*.hh diff=cpp
+*.m diff=objc
+*.mm diff=objc
+*.cs diff=csharp
+*.css diff=css
+*.html diff=html
+*.xhtml diff=html
+*.ex diff=elixir
+*.exs diff=elixir
+*.go diff=golang
+*.php diff=php
+*.pl diff=perl
+*.py diff=python
+*.md diff=markdown
+*.rb diff=ruby
+*.rake diff=ruby
+*.rs diff=rust
+*.lisp diff=lisp
+*.el diff=lisp