From: Matthieu Moy Date: Thu, 16 Apr 2015 07:02:27 +0000 (+0200) Subject: t3701-add-interactive: simplify code X-Git-Tag: v2.5.0-rc0~134^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=416145f07acd6985fd45f993984fd6c8727a7a0b;p=thirdparty%2Fgit.git t3701-add-interactive: simplify code Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index 24ddd8a704..b63b9d4c8e 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -326,10 +326,7 @@ test_expect_success 'split hunk "add -p (edit)"' ' # 2. Correct version applies the (not)edited version, and asks # about the next hunk, against which we say q and program # exits. - for a in s e q n q q - do - echo $a - done | + printf "%s\n" s e q n q q | EDITOR=: git add -p && git diff >actual && ! grep "^+15" actual