Revision edca4152560522a431a51fc0a06147fc680b5b18 authored by Junio C Hamano on 24 May 2013, 18:34:46 UTC, committed by Junio C Hamano on 24 May 2013, 18:34:46 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5e49f30
t2014-switch.sh
#!/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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...