From 9d7e9f2a5cf4e70d4dea6d32eda64450d84d0588 Mon Sep 17 00:00:00 2001 From: Marvin Buss Date: Mon, 12 Feb 2024 13:14:41 +0100 Subject: [PATCH 1/2] Update gitattributes --- .gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitattributes b/.gitattributes index 04c6ca3..0a660ac 100644 --- a/.gitattributes +++ b/.gitattributes @@ -23,6 +23,17 @@ # Jupyter notebook *.ipynb text eol=lf +# Apply override to all files in the directory +*.md linguist-detectable + +# HachiCorp Configuration Language +*.hcl eol=lf + +# Terraform +*.tf text eol=lf +*.tf.json text eol=lf +*.tfvars text eol=lf + # Note: .db, .p, and .pkl files are associated # with the python modules ``pickle``, ``dbm.*``, # ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` From ddcd202ffcbe2e1d4b032cddf0d0ef80aeefe74b Mon Sep 17 00:00:00 2001 From: Marvin Buss Date: Mon, 12 Feb 2024 13:17:47 +0100 Subject: [PATCH 2/2] Add gitattributes default values --- .gitattributes | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 0a660ac..d701967 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,21 @@ -# Basic .gitattributes for a python repo. +# THIS IS ONLY FOR THE gitattributes REPOSITORY. +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto + +# These files are text and should be normalized (Convert crlf => lf) +*.gitattributes text +.gitignore text +*.md text diff=markdown + +# Exclude files from exporting +.gitattributes export-ignore +.gitignore export-ignore + +# Enable syntax highlighting for files with `.gitattributes` extensions. +*.gitattributes linguist-language=gitattributes +*.gitattributes linguist-detectable=true +*.gitattributes linguist-documentation=false # Source files # ============ @@ -23,6 +40,11 @@ # Jupyter notebook *.ipynb text eol=lf +# Note: .db, .p, and .pkl files are associated +# with the python modules ``pickle``, ``dbm.*``, +# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` +# (among others). + # Apply override to all files in the directory *.md linguist-detectable @@ -33,8 +55,3 @@ *.tf text eol=lf *.tf.json text eol=lf *.tfvars text eol=lf - -# Note: .db, .p, and .pkl files are associated -# with the python modules ``pickle``, ``dbm.*``, -# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` -# (among others).