Merge branch 'ps/reflog-list' into HEAD
[alt-git.git] / t / t2014-checkout-switch.sh
blobc138bdde4fea1536a06137c68ab100b6b0d1f49b
1 #!/bin/sh
3 test_description='Peter MacMillan'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 test_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
18 test_expect_success 'check all changes are staged' '
19 git diff --exit-code
22 test_expect_success 'second commit' '
23 git commit -m V2
26 test_expect_success 'check' '
27 git diff --cached --exit-code
30 test_done