Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: [PATCH 4/4] diffcore-delta.c: Ignore CR in CRLF for text files

From: しらいしななこ <hidden>
Date: 2016-06-15 22:43:18

Possibly related (same subject, not in this thread)

Quoting Junio C Hamano [off-list ref]:
This ignores CR byte in CRLF sequence in text file when
computing similarity of two blobs.
...
+test_expect_success 'diff -M' '
+
+	git diff-tree -M -r --name-status HEAD^ HEAD |
+	sed -e "s/R[0-9]*/RNUM/" >actual &&
+	echo "RNUM	sample	elpmas" >expect &&
+	diff -u expect actual
+
+'
I tried this test but it does not give R100.  The new file is unchanged except for
LF -> CRLF.  Could you explain why?

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/

----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help