Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 1d557352f18a4b8f73be402674af6bd5bb152ab9 authored by Junio C Hamano on 01 December 2007, 19:20:00 UTC
GIT 1.5.3.7
Tip revision: 1d55735
t4120-apply-popt.sh
#!/bin/sh
#
# Copyright (c) 2007 Shawn O. Pearce
#

test_description='git apply -p handling.'

. ./test-lib.sh

test_expect_success setup '
	mkdir sub &&
	echo A >sub/file1 &&
	cp sub/file1 file1 &&
	git add sub/file1 &&
	echo B >sub/file1 &&
	git diff >patch.file &&
	rm sub/file1 &&
	rmdir sub
'

test_expect_success 'apply git diff with -p2' '
	git apply -p2 patch.file
'

test_done
back to top