Revision cbcab75c54b5956dcaa4f24a4074bc99adc49629 authored by Junio C Hamano on 02 December 2010, 20:06:06 UTC, committed by Junio C Hamano on 02 December 2010, 20:13:27 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6b3020a
Raw File
t6009-rev-list-parent.sh
#!/bin/sh

test_description='properly cull all ancestors'

. ./test-lib.sh

commit () {
	test_tick &&
	echo $1 >file &&
	git commit -a -m $1 &&
	git tag $1
}

test_expect_success setup '

	touch file &&
	git add file &&

	commit one &&

	test_tick=$(($test_tick - 2400))

	commit two &&
	commit three &&
	commit four &&

	git log --pretty=oneline --abbrev-commit
'

test_expect_success 'one is ancestor of others and should not be shown' '

	git rev-list one --not four >result &&
	>expect &&
	test_cmp expect result

'

test_done
back to top