commit: 4fa30c6e48b74ef22243bcb819190abc09a3179f
parent 8654c2d7f7c4f7f7bdd54c06a8d87a51862e1452
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 18 Aug 2022 07:59:09 +0200
git/attributes: New, add some defaults for diff=
Diffstat:
1 file changed, 32 insertions(+), 0 deletions(-)
diff --git a/.config/git/attributes b/.config/git/attributes
@@ -0,0 +1,32 @@
+# diff= allows to get better hunk text (ie. function name)
+*.c diff=cpp
+*.cxx diff=cpp
+*.cpp diff=cpp
+*.h diff=cpp
+*.hpp diff=cpp
+
+*.sh diff=bash
+*.bash diff=bash
+/configure diff=bash
+
+*.exs diff=elixir
+*.ex diff=elixir
+
+*.go diff=golang
+*.rb diff=ruby
+
+*.pl diff=perl
+*.pm diff=perl
+
+*.py diff=python
+*.py3 diff=python
+
+*.html diff=html
+*.xhtml diff=html
+*.shtml diff=html
+
+*.css diff=css
+
+*.gmi diff=markdown
+*.md diff=markdown
+*.mdwn diff=markdown