t3701: clean up hunk splitting tests
commitd16632f6942568019dec21447da1ecc58dba98e0
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 11 Jan 2022 11:12:09 +0000 (11 11:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jan 2022 18:29:52 +0000 (12 10:29 -0800)
treed273a267ca5bb583a29f6ec6af869567f5949cc3
parente9d7761bb94f20acc98824275e317fa82436c25d
t3701: clean up hunk splitting tests

Clean up some test constructs in preparation for extending the tests
in the next commit. There are three small changes, I've grouped them
together as they're so small it didn't seem worth creating three
separate commits.
 1 - "cat file | sed expression" is better written as
     "sed expression file".
 2 - Follow our usual practice of redirecting the output of git
     commands to a file rather than piping it into another command.
 3 - Use test_write_lines rather than 'printf "%s\n"'.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3701-add-interactive.sh