summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorMario Rosell Rabinal <mario@mariorosell.es>2026-01-24 20:21:53 +0100
committerMario Rosell Rabinal <mario@mariorosell.es>2026-01-24 20:21:53 +0100
commit3f5ca8b27e161017283bfa6a562e6f722c828fa7 (patch)
tree2866927b86ee1bf6e68fa950c0f7e5118b4e6ff0 /.gitattributes
parent8a0bbb57aa00da0dc6e53655a7c7019b4e0e9c7e (diff)
Add git stufffront
To force LF and to not clutter diffs with binary data. Also ignored some stuff you do not want :P.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes56
1 files changed, 56 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..0b834ea
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,56 @@
+# text
+* text=auto
+
+# sources
+*.c text diff eol=lf
+*.h text diff eol=lf
+*.i text diff eol=lf
+*.s text diff eol=lf
+*.S text diff eol=lf
+
+mkfile text diff eol=lf
+makefile text diff eol=lf
+Makefile text diff eol=lf
+
+*.sh text diff eol=lf
+*.py text diff eol=lf
+*.pl text diff eol=lf
+*.rc text diff eol=lf
+*.go text diff eol=lf
+
+# docs
+*.1 text diff eol=lf
+*.2 text diff eol=lf
+*.3 text diff eol=lf
+*.4 text diff eol=lf
+*.5 text diff eol=lf
+*.6 text diff eol=lf
+*.7 text diff eol=lf
+*.8 text diff eol=lf
+
+*.tr text diff eol=lf
+
+# binaries
+*.6o binary
+*.8o binary
+*.a binary
+*.so binary
+*.dll binary
+*.exe binary
+*.lib binary
+*.elf binary
+*.iso binary
+*.img binary
+
+# images
+*.ico
+*.png binary
+*.jpg binary
+*.jpeg binary
+*.gif binary
+*.pdf binary
+
+# extra stuff
+*.ini text diff eol=lf
+.gitkeep text
+