From dc2aabbddd452cdf1320ad814746f206a6e5de0e Mon Sep 17 00:00:00 2001 From: Dhanjit Das Date: Fri, 4 Sep 2026 17:52:14 +0530 Subject: [PATCH] Pin line endings to LF, so a clone is byte-identical on every platform core.autocrlf is a machine setting and does not travel with the repo. With it off and no .gitattributes, git normalises nothing and whatever bytes the editor wrote get committed verbatim. This makes the rule part of the repo instead. --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..fe8c45a2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Line endings are LF in the object store and in every working tree, on every +# platform. This travels with the clone; core.autocrlf does not. +* text=auto eol=lf