Re: [PATCH v2 09/27] userdiff tests: match full hunk headers
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 17, 2021, 02:03 UTC
- Message-ID
- <xmqqim6rmox1.fsf@gitster.g>
- In-Reply-To
- <xmqqsg5vrhha.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
> + sed -ne "s/^@@[^@]*@@//p" actual | > + if test -n "$HEAD" > + then > + grep -F "$HEAD"
I think this should also use "-x" (match the whole line) if it is portable enough; the option should be available in POSIX.1 but we haven't used it anywhere in our test suite.
Show 5 quoted lines
> + else > + grep "^.*RIGHT" > + fi > + ' > done