From 52f74a32ee49bbbec816cb6dcd62079ef836fd98 Mon Sep 17 00:00:00 2001 From: Eric Cornelisesn Date: Fri, 3 Jul 2020 11:19:52 +0300 Subject: [PATCH] Add gitattributes file With two configurations: 1. `* text=auto`: normalizes line endings for all files in the repo 2. `FILE -diff`: hides the diff of these files by default. I configured this for lib/main.js and package-lock.json as they are not (intended to be) human readable nor edited by humans. Hence, seeing their diff is mostly useless. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..24ceece3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto + +# don't diff machine generated files +lib/main.js -diff +package-lock.json -diff