t3701-add-interactive: simplify code
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
52735a6892
commit
416145f07a
@ -326,10 +326,7 @@ test_expect_success 'split hunk "add -p (edit)"' '
|
|||||||
# 2. Correct version applies the (not)edited version, and asks
|
# 2. Correct version applies the (not)edited version, and asks
|
||||||
# about the next hunk, against which we say q and program
|
# about the next hunk, against which we say q and program
|
||||||
# exits.
|
# exits.
|
||||||
for a in s e q n q q
|
printf "%s\n" s e q n q q |
|
||||||
do
|
|
||||||
echo $a
|
|
||||||
done |
|
|
||||||
EDITOR=: git add -p &&
|
EDITOR=: git add -p &&
|
||||||
git diff >actual &&
|
git diff >actual &&
|
||||||
! grep "^+15" actual
|
! grep "^+15" actual
|
||||||
|
Loading…
x
Reference in New Issue
Block a user