Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 31e0b2ca81ad985a8768c33c0aba547a51d05277 authored by Junio C Hamano on 23 February 2008, 19:31:04 UTC
GIT 1.5.4.3
Tip revision: 31e0b2c
t4022-diff-rewrite.sh
#!/bin/sh

test_description='rewrite diff'

. ./test-lib.sh

test_expect_success setup '

	cat ../../COPYING >test &&
	git add test &&
	tr 'a-zA-Z' 'n-za-mN-ZA-M' <../../COPYING >test

'

test_expect_success 'detect rewrite' '

	actual=$(git diff-files -B --summary test) &&
	expr "$actual" : " rewrite test ([0-9]*%)$" || {
		echo "Eh? <<$actual>>"
		false
	}

'

test_done

back to top