We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798a5b0 commit 7e9e048Copy full SHA for 7e9e048
t/t3904-stash-patch.sh
@@ -81,4 +81,27 @@ test_expect_success 'none of this moved HEAD' '
81
verify_saved_head
82
'
83
84
+test_expect_failure 'stash -p with split hunk' '
85
+ git reset --hard &&
86
+ cat >test <<-\EOF &&
87
+ aaa
88
+ bbb
89
+ ccc
90
+ EOF
91
+ git add test &&
92
+ git commit -m "initial" &&
93
94
95
+ added line 1
96
97
+ added line 2
98
99
100
+ printf "%s\n" s n y q |
101
+ test_might_fail git stash -p 2>error &&
102
+ ! test_must_be_empty error &&
103
+ grep "added line 1" test &&
104
+ ! grep "added line 2" test
105
+'
106
+
107
test_done
0 commit comments