summaryrefslogtreecommitdiff
path: root/t/t3701-add-interactive.sh
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2015-04-16 07:02:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-04-16 21:14:09 (GMT)
commit416145f07acd6985fd45f993984fd6c8727a7a0b (patch)
treec0c3b293dcd960327f7bce94c1cfe5845612f194 /t/t3701-add-interactive.sh
parent52735a689270bb1de94eb3de198594b36caed9bb (diff)
downloadgit-416145f07acd6985fd45f993984fd6c8727a7a0b.zip
git-416145f07acd6985fd45f993984fd6c8727a7a0b.tar.gz
git-416145f07acd6985fd45f993984fd6c8727a7a0b.tar.bz2
t3701-add-interactive: simplify code
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3701-add-interactive.sh')
-rwxr-xr-xt/t3701-add-interactive.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index 24ddd8a..b63b9d4 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