Re: [PATCH master] convert: The native line-ending is \r\n on MinGW
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 15, 2013, 21:43 UTC
- Message-ID
- <7vsj2rpj0j.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CABPQNSaA7Qdt5eCZR3rs87gL730Y_xMrg6S-++YuaXdC2k45jg@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
> This is absolutely the right thing to do. However, stuff have changed > a bit since the patch was written; this change now needs to go in > config.mak.uname instead of config.mak.
Thanks for a quick response.
What's your preference? I could just ignore a patch I won't be able to test myself and have you guys carry it in your tree forever, but I do not think that is necessary for something small like this.
I think this is low impact enough that it can directly go to 'master' or even 'maint' if I were to apply to my tree.
Thanks.
-- >8 -- From: Jonathan Nieder <jrnieder@gmail.com> Date: Sat, 4 Sep 2010 03:25:09 -0500 Subject: [PATCH] convert: The native line-ending is \r\n on MinGW
If you try this:
1. Install Git for Windows (from the msysgit project)
2. Put
[core] autocrlf = false eol = native
in your .gitconfig.
3. Clone a project with
*.txt text
in its .gitattributes.
Then with current git, any text files checked out have LF line endings, instead of the expected CRLF.
Cc: Johannes Schindelin <johannes.schindelin@gmx.de> Cc: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> --- config.mak.uname | 1 + 1 file changed, 1 insertion(+)
diff --git a/config.mak.uname b/config.mak.uname index 9080054..d78fd3d 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -507,6 +507,7 @@ ifneq (,$(findstring MINGW,$(uname_S))) compat/win32/dirent.o EXTLIBS += -lws2_32 PTHREAD_LIBS = + NATIVE_CRLF = YesPlease X = .exe SPARSE_FLAGS = -Wno-one-bit-signed-bitfield ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
-- 1.8.2.1-542-g3613165