diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2015-04-16 09:02:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-04-16 14:14:09 -0700 |
commit | 416145f07acd6985fd45f993984fd6c8727a7a0b (patch) | |
tree | c0c3b293dcd960327f7bce94c1cfe5845612f194 /t/t3701-add-interactive.sh | |
parent | 52735a689270bb1de94eb3de198594b36caed9bb (diff) | |
download | git-416145f07acd6985fd45f993984fd6c8727a7a0b.tar.gz |
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-x | t/t3701-add-interactive.sh | 5 |
1 files changed, 1 insertions, 4 deletions
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 |