Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 703f05ad5835cff92b12c29aecf8d724c8c847e2 authored by Junio C Hamano on 30 September 2011, 21:20:57 UTC
Git 1.7.7
Tip revision: 703f05a
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