https://github.com/git/git
Revision c490a6079021a3343ca5b042b37258858fdefbfc authored by Junio C Hamano on 25 July 2013, 02:29:07 UTC, committed by Junio C Hamano on 25 July 2013, 02:29:07 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9e8a901
Raw File
Tip revision: c490a6079021a3343ca5b042b37258858fdefbfc authored by Junio C Hamano on 25 July 2013, 02:29:07 UTC
Git 1.8.4-rc0
Tip revision: c490a60
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
back to top