File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 15
15
chmod +x helper
16
16
17
17
test_expect_success ' setup ' '
18
+ echo "bin: test number 0" >zero.bin &&
18
19
echo "bin: test 1" >one.bin &&
19
20
echo "bin: test number 2" >two.bin &&
20
21
if test_have_prereq SYMLINKS; then
@@ -42,6 +43,7 @@ test_expect_success 'no filter specified' '
42
43
43
44
test_expect_success ' setup textconv filters' '
44
45
echo "*.bin diff=test" >.gitattributes &&
46
+ echo "zero.bin eol=crlf" >>.gitattributes &&
45
47
git config diff.test.textconv ./helper &&
46
48
git config diff.test.cachetextconv false
47
49
'
@@ -73,6 +75,15 @@ test_expect_success 'blame --textconv going through revisions' '
73
75
test_cmp expected result
74
76
'
75
77
78
+ test_expect_success ' blame --textconv with local changes' '
79
+ test_when_finished "git checkout zero.bin" &&
80
+ printf "bin: updated number 0\015" >zero.bin &&
81
+ git blame --textconv zero.bin >blame &&
82
+ expect="(Not Committed Yet ....-..-.. ..:..:.. +0000 1)" &&
83
+ expect="$expect converted: updated number 0" &&
84
+ expr "$(find_blame <blame)" : "^$expect"
85
+ '
86
+
76
87
test_expect_success ' make a new commit' '
77
88
echo "bin: test number 2 version 3" >>two.bin &&
78
89
GIT_AUTHOR_NAME=Number3 git commit -a -m Third --date="2010-01-01 22:00:00"
You can’t perform that action at this time.
0 commit comments