From: Junio C Hamano Date: Tue, 1 Nov 2011 22:20:28 +0000 (-0700) Subject: Merge branch 'ss/blame-textconv-fake-working-tree' X-Git-Tag: v1.7.8-rc1~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b919f8404a9e212b3b9d602d4060e440072a0303;p=git.git Merge branch 'ss/blame-textconv-fake-working-tree' * ss/blame-textconv-fake-working-tree: (squash) test for previous blame.c: Properly initialize strbuf after calling, textconv_object() Conflicts: t/t8006-blame-textconv.sh --- b919f8404a9e212b3b9d602d4060e440072a0303 diff --cc t/t8006-blame-textconv.sh index 32ec82ad6,53905a222..4ee42f12f --- a/t/t8006-blame-textconv.sh +++ b/t/t8006-blame-textconv.sh @@@ -74,27 -75,15 +76,36 @@@ test_expect_success 'blame --textconv g test_cmp expected result ' + test_expect_success 'blame --textconv with local changes' ' + test_when_finished "git checkout zero.bin" && + printf "bin: updated number 0\015" >zero.bin && + git blame --textconv zero.bin >blame && + expect="(Not Committed Yet ....-..-.. ..:..:.. +0000 1)" && + expect="$expect converted: updated number 0" && + expr "$(find_blame expected_one <blame && + find_blame result && + test_cmp expected result && + git blame --textconv one.bin >blame && + find_blame result && + test_cmp expected_one result +' + +test_expect_success 'setup -cachetextconv' ' + git config diff.test.cachetextconv false +' + test_expect_success 'make a new commit' ' echo "bin: test number 2 version 3" >>two.bin && GIT_AUTHOR_NAME=Number3 git commit -a -m Third --date="2010-01-01 22:00:00"