diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-03-29 11:38:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-02 06:56:59 +0200 |
commit | c2a8c1dd001c9ea318f90abedfd56d364f91a2ed (patch) | |
tree | 914532a204e54bdfe93c72f75ca8b09fa18a615d /t/t2014-checkout-switch.sh | |
parent | git-checkout.txt: fix monospace typeset (diff) | |
download | git-c2a8c1dd001c9ea318f90abedfd56d364f91a2ed.tar.xz git-c2a8c1dd001c9ea318f90abedfd56d364f91a2ed.zip |
t: rename t2014-switch.sh to t2014-checkout-switch.sh
The old name does not really say that this is about 'checkout -b'. See
49d833dc07 (Revert "checkout branch: prime cache-tree fully" -
2009-05-12) for more information
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2014-checkout-switch.sh')
-rwxr-xr-x | t/t2014-checkout-switch.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/t2014-checkout-switch.sh b/t/t2014-checkout-switch.sh new file mode 100755 index 0000000000..ccfb147113 --- /dev/null +++ b/t/t2014-checkout-switch.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +test_description='Peter MacMillan' +. ./test-lib.sh + +test_expect_success setup ' + echo Hello >file && + git add file && + test_tick && + git commit -m V1 && + echo Hello world >file && + git add file && + git checkout -b other +' + +test_expect_success 'check all changes are staged' ' + git diff --exit-code +' + +test_expect_success 'second commit' ' + git commit -m V2 +' + +test_expect_success 'check' ' + git diff --cached --exit-code +' + +test_done |