Skip to content

Commit cd894ee

Browse files
committed
t/t4014: test "am -3" with mode-only change.
Earlier commit ece7b74 added a test for rebase that uses "am -3", but this adds a test to check "am -3" itself. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3d845d7 commit cd894ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/t4014-format-patch.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ test_description='Format-patch skipping already incorporated patches'
1010
test_expect_success setup '
1111
1212
for i in 1 2 3 4 5 6 7 8 9 10; do echo "$i"; done >file &&
13-
git add file &&
13+
cat file >elif &&
14+
git add file elif &&
1415
git commit -m Initial &&
1516
git checkout -b side &&
1617
1718
for i in 1 2 5 6 A B C 7 8 9 10; do echo "$i"; done >file &&
18-
git update-index file &&
19+
chmod +x elif &&
20+
git update-index file elif &&
21+
git update-index --chmod=+x elif &&
1922
git commit -m "Side changes #1" &&
2023
2124
for i in D E F; do echo "$i"; done >>file &&

0 commit comments

Comments
 (0)