summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-08 20:34:52 +0100
committerGitHub <noreply@github.com>2023-12-08 20:34:52 +0100
commitffa3dc526e8a793604eabfdbf4e2caac7b1acf5f (patch)
tree4a620851b21831e9f83eae73b43e00e4956ef9b3 /.gitattributes
parent520889c6e99b2ccbc5008e73769b953a45d43c57 (diff)
parentc30002208d392177cb1ffc1a5c714f7ad6d573b6 (diff)
downloadvyos-1x-ffa3dc526e8a793604eabfdbf4e2caac7b1acf5f.tar.gz
vyos-1x-ffa3dc526e8a793604eabfdbf4e2caac7b1acf5f.zip
Merge pull request #2576 from indrajitr/github-streamline
git: T5803: Adjust git configuration for baseline defaults
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes84
1 files changed, 80 insertions, 4 deletions
diff --git a/.gitattributes b/.gitattributes
index ea2cc59e4..624e00f03 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,80 @@
-data/templates/**/*.conf linguist-language=Jinja
-*.tmpl linguist-language=Jinja
-*.xml.i linguist-language=XML
-*.xml.in linguist-language=XML
+# Common settings that generally should always be used with your language specific settings
+
+# Auto detect text files and perform LF normalization
+* text=auto
+
+#
+# The above will handle all files NOT found below
+#
+
+# Documents
+*.md text diff=markdown
+*.mdx text diff=markdown
+*.adoc text
+*.csv text eol=crlf
+*.rst text
+*.txt text
+
+# Graphics
+*.png binary
+*.jpg binary
+*.jpeg binary
+*.gif binary
+*.tif binary
+*.tiff binary
+*.ico binary
+# SVG treated as text by default.
+*.svg text
+# If you want to treat it as binary,
+# use the following line instead.
+# *.svg binary
+
+# Scripts
+*.bash text eol=lf diff=bash
+*.sh text eol=lf diff=bash
+
+# Serialisation
+*.conf text
+*.graphql text
+*.j2 text
+*.json text
+*.rules text
+*.service text
+*.toml text
+*.tmpl text linguist-language=Jinja
+*.xml text
+*.xml.i text linguist-language=XML
+*.xml.in text linguist-language=XML
+*.yaml text
+*.yml text
+
+# Text files where line endings should be preserved
+*.patch -text
+*.diff -text
+
+# Python files
+*.pxd text diff=python
+*.py text diff=python
+*.py3 text diff=python
+*.pyw text diff=python
+*.pyx text diff=python
+*.pyz text diff=python
+*.pyi text diff=python
+
+# Fix syntax highlighting on GitHub to allow comments
+.vscode/*.json linguist-language=JSON-with-Comments
+
+#
+# Exclude files from exporting
+#
+
+.gitattributes export-ignore
+.gitignore export-ignore
+.gitkeep export-ignore
+*.pyc binary export-ignore
+*.pyo binary export-ignore
+
+#
+# Enable syntax highlighting for VSCode settings
+#
+.vscode/settings.json linguist-language=jsonc