]> git.ipfire.org Git - thirdparty/git.git/blame - t/t2014-checkout-switch.sh
The third batch
[thirdparty/git.git] / t / t2014-checkout-switch.sh
CommitLineData
49d833dc
JH
1#!/bin/sh
2
3test_description='Peter MacMillan'
9081a421
ÆAB
4
5TEST_PASSES_SANITIZE_LEAK=true
49d833dc
JH
6. ./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