Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
stash -p: demonstrate failure of split with mixed y/n
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Thu, 16 Apr 2015 07:02:31 +0000
(09:02 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 16 Apr 2015 21:14:12 +0000
(14:14 -0700)
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3904-stash-patch.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
798a5b0
)
diff --git
a/t/t3904-stash-patch.sh
b/t/t3904-stash-patch.sh
index 0f8f47fabc0dae38cce5c5a6d875fae38d2ab731..38e730090fe311ea82c737646aedba214d1143bb 100755
(executable)
--- a/
t/t3904-stash-patch.sh
+++ b/
t/t3904-stash-patch.sh
@@
-81,4
+81,27
@@
test_expect_success 'none of this moved HEAD' '
verify_saved_head
'
+test_expect_failure 'stash -p with split hunk' '
+ git reset --hard &&
+ cat >test <<-\EOF &&
+ aaa
+ bbb
+ ccc
+ EOF
+ git add test &&
+ git commit -m "initial" &&
+ cat >test <<-\EOF &&
+ aaa
+ added line 1
+ bbb
+ added line 2
+ ccc
+ EOF
+ printf "%s\n" s n y q |
+ test_might_fail git stash -p 2>error &&
+ ! test_must_be_empty error &&
+ grep "added line 1" test &&
+ ! grep "added line 2" test
+'
+
test_done