Thread (1 message) 1 message, 1 author, 2020-07-13

Re: Force git diff to create a binary patch?

From: Junio C Hamano <hidden>
Date: 2020-07-13 14:51:20

Jason Xu [off-list ref] writes:
Here are two small files with non-ASCII data, yet git diff considers
them text instead of binary.
Because it is based on heuristics, without a NUL in that short file,
the file may not be judged to be binary.

    echo '* -diff' >.git/info/attributes

would tell Git that they need to be treated as binary junk not
suited for textual diff (you'd need to tweak the pattern to your
need).


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help