blob: c138bdde4fea1536a06137c68ab100b6b0d1f49b [file] [log] [blame]
Junio C Hamano49d833d2009-05-12 09:41:28 -07001#!/bin/sh
2
3test_description='Peter MacMillan'
Ævar Arnfjörð Bjarmason9081a422021-11-16 19:27:38 +01004
5TEST_PASSES_SANITIZE_LEAK=true
Junio C Hamano49d833d2009-05-12 09:41:28 -07006. ./test-lib.sh
7
8test_expect_success setup '
9 echo Hello >file &&
10 git add file &&
11 test_tick &&
12 git commit -m V1 &&
13 echo Hello world >file &&
14 git add file &&
15 git checkout -b other
16'
17
18test_expect_success 'check all changes are staged' '
19 git diff --exit-code
20'
21
22test_expect_success 'second commit' '
23 git commit -m V2
24'
25
26test_expect_success 'check' '
27 git diff --cached --exit-code
28'
29
30test_done