t/t4014: test "am -3" with mode-only change.
Earlier commit ece7b74903007cee8d280573647243d46a6f3a95 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>
Junio C Hamano committed
Sep 18, 2007 at 15:19 UTC
cd894ee9adf0c026b74761d7b1c0d8dabe4ff4e1
1 file changed
+5
-2
t/t4014-format-patch.sh
+5
-2
@@ -10,12 +10,15 @@ test_description='Format-patch skipping already incorporated patches'
10
test_expect_success setup '
11
12
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 &&
15
git commit -m Initial &&
16
git checkout -b side &&
17
18
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 &&
22
git commit -m "Side changes #1" &&
23
24
for i in D E F; do echo "$i"; done >>file &&