aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/.gitattributes13
-rw-r--r--files/.gitconfig1
2 files changed, 14 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
diff --git a/files/.gitconfig b/files/.gitconfig
index b4fc4a7..b831675 100644
--- a/files/.gitconfig
+++ b/files/.gitconfig
@@ -39,6 +39,7 @@
pager = diff-so-fancy | less -+$LESS -FRX
excludesfile = ~/.gitignore
quotepath = false
+ attributesfile = ~/.gitattributes
[log]
decorate = short
mailmap = true