Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t3701-add-interactive: simplify code
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Thu, 16 Apr 2015 07:02:27 +0000
(09:02 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 16 Apr 2015 21:14:09 +0000
(14:14 -0700)
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3701-add-interactive.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
52735a6
)
diff --git
a/t/t3701-add-interactive.sh
b/t/t3701-add-interactive.sh
index 24ddd8a704b22e32322b8ef52bbd0d2e6195e5e1..b63b9d4c8e60dd1bf8d8591469c533c7d87ad380 100755
(executable)
--- 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