Skip to content

Commit 416145f

Browse files
moygitster
authored andcommitted
t3701-add-interactive: simplify code
Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 52735a6 commit 416145f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

t/t3701-add-interactive.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,7 @@ test_expect_success 'split hunk "add -p (edit)"' '
326326
# 2. Correct version applies the (not)edited version, and asks
327327
# about the next hunk, against which we say q and program
328328
# 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 |
333330
EDITOR=: git add -p &&
334331
git diff >actual &&
335332
! grep "^+15" actual

0 commit comments

Comments
 (0)