rev-parse: read parseopt spec with strbuf_getline()
commit72e37b6ac851c3926956c9d11a40260f08bf1c5e
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2015 20:59:44 +0000 (28 13:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2016 18:34:41 +0000 (15 10:34 -0800)
tree8d6ec50a72709902c2ebd050cd8afab0968718cf
parent6e8d46f9d4bb3643b8fdf4e1b0856f7910dbc948
rev-parse: read parseopt spec with strbuf_getline()

"rev-parse --parseopt" specification is clearly text and we
should anticipate that we may be fed CRLF lines.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-parse.c