grep: read -f file with strbuf_getline()
authorJunio C Hamano <redacted>
Wed, 28 Oct 2015 20:53:47 +0000 (13:53 -0700)
committerJunio C Hamano <redacted>
Fri, 15 Jan 2016 18:35:07 +0000 (10:35 -0800)
commita551843129dc4d329d4f7915a9c10120963acd7d
tree1b1cf74faaa641eb377a3d5a907ef19df923ccd7
parent933bea922c202a7ff9b133a5cca4a805a7013aa2
grep: read -f file with strbuf_getline()

List of patterns file could come from a DOS editor.

This is iffy; you may actually be trying to find a line with ^M in
it on a system whose line ending is LF.  You can of course work it
around by having a line that has "^M^M^J", let the strbuf_getline()
eat the last "^M^J", leaving just the single "^M" as the pattern.

Signed-off-by: Junio C Hamano <redacted>
builtin/grep.c
git clone https://git.99rst.org/PROJECT