aboutsummaryrefslogtreecommitdiff
path: root/files/.gitattributes
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2025-03-03 21:18:37 +0500
committerAnton Bobov <anton@bobov.name>2025-03-03 21:19:38 +0500
commit7ab2d72100ce6a3d47221099d61e18c9ade6ab73 (patch)
tree12d260b758bf4f2caa7f4c50e5e9181be475287f /files/.gitattributes
parentd0d68ad0ad8099e17371ab4b927b9fb1e4c82bfa (diff)
git: Add attributes
Diffstat (limited to 'files/.gitattributes')
-rw-r--r--files/.gitattributes13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/.gitattributes b/files/.gitattributes
new file mode 100644
index 0000000..b6e1c41
--- /dev/null
+++ b/files/.gitattributes
@@ -0,0 +1,13 @@
+# See:
+# - https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
+# - https://github.com/git/git/blob/cb0ae672aeabefca9704477ea8018ac94f523970/userdiff.c
+# - https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
+
+*.css diff=css
+*.go diff=golang
+*.html diff=html
+*.java diff=java
+*.md diff=markdown
+*.py diff=python
+*.sh diff=bash
+*.xhtml diff=html