]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6030-bisect-porcelain.sh
bisect: allow CRLF line endings in "git bisect replay" input
authorChristopher Warrington <chwarr@microsoft.com>
Thu, 7 May 2020 21:29:40 +0000 (21:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 May 2020 17:54:27 +0000 (10:54 -0700)
commit6c722cbe5a919166eb0d7369762b09393eb5b518
treeb9654b4a12e8576e8cfde9a570d433d44908166b
parentaf6b65d45ef179ed52087e80cb089f6b2349f4ec
bisect: allow CRLF line endings in "git bisect replay" input

We advertise that the bisect log can be corrected in your editor
before being fed to "git bisect replay", but some editors may
turn the line endings to CRLF.

Update the parser of the input lines so that the CR at the end of
the line gets ignored.

Were anyone to intentionally be using terms/revs with embedded CRs,
replaying such bisects will no longer work with this change. I suspect
that this is incredibly rare.

Signed-off-by: Christopher Warrington <chwarr@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh
t/t6030-bisect-porcelain.sh