From: Nguyễn Thái Ngọc Duy Date: Fri, 29 Mar 2019 10:38:57 +0000 (+0700) Subject: t: rename t2014-switch.sh to t2014-checkout-switch.sh X-Git-Tag: v2.23.0-rc0~64^2~41 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c2a8c1dd001c9ea318f90abedfd56d364f91a2ed 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 Signed-off-by: Junio C Hamano --- 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 diff --git a/t/t2014-switch.sh b/t/t2014-switch.sh deleted file mode 100755 index ccfb147113..0000000000 --- a/t/t2014-switch.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/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