remove CR/LF from .gitignore

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

remove CR/LF from .gitignore

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:10

For everyone cursed by dos/windows line endings (aka CRLF):

The code reading the .gitignore files (excludes and excludes per
directory) leaves \r in the patterns, which causes fnmatch to fail for
no obvious reason. Just remove a "\r" preceding a "\n"
unconditionally.

---

Junio, sorry for attachments. Have no other way to it on gmail here at
work. The other patch is just the test.

Re: remove CR/LF from .gitignore

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:10


On Wed, 2 Nov 2005, Alex Riesen wrote:
For everyone cursed by dos/windows line endings (aka CRLF):
Btw, it would be good if somebody verified that the .git/config file also 
works with CR/LF. 

I'm pretty sure "\" at the end of line will break, but I didn't care 
enough. And maybe nobody does. Normal config files _should_ work, but 
you can guess how eager I'm to test it ;)

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help