From afc89a1725f92743e1d0a25f55177d7d501833da Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 2 Dec 2021 12:31:46 -0500 Subject: [PATCH] Set Linux git config's autocrlf to input mode --- linux/gitconfig.platform | 3 ++- windows/gitconfig.platform | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/gitconfig.platform b/linux/gitconfig.platform index 1924e15..7de3a8c 100644 --- a/linux/gitconfig.platform +++ b/linux/gitconfig.platform @@ -1,4 +1,5 @@ [code] editor = vim [core] - autocrlf = true + # Don't change LF line endings and if a CRLF is found then change it to LF on a commit. + autocrlf = input diff --git a/windows/gitconfig.platform b/windows/gitconfig.platform index 19bfaa9..ce7e101 100644 --- a/windows/gitconfig.platform +++ b/windows/gitconfig.platform @@ -1,4 +1,5 @@ [code] editor = /usr/bin/vim [core] + # Convert unix LF to Windows CRLF when checking out and vice-versa when adding files to the index. autocrlf = true