Skip to content

Commit

Permalink
convert: The native line-ending is \r\n on MinGW
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Apr 16, 2013
1 parent afad200 commit 95f31e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 95f31e9

Please sign in to comment.