t3701-add-interactive: simplify code
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Apr 16, 2015 at 09:02 UTC
416145f07acd6985fd45f993984fd6c8727a7a0b
1 file changed
+1
-4
t/t3701-add-interactive.sh
+1
-4
@@ -326,10 +326,7 @@ test_expect_success 'split hunk "add -p (edit)"' '
326
# 2. Correct version applies the (not)edited version, and asks
327
# about the next hunk, against which we say q and program
328
# exits.
329
- for a in s e q n q q
330
- do
331
- echo $a
332
- done |
329
+ printf "%s\n" s e q n q q |
330
EDITOR=: git add -p &&
331
git diff >actual &&
332
! grep "^+15" actual