]> git.proxmox.com Git - libgit2.git/commit
Match binary file check of core git in diff
authorRussell Belfer <rb@github.com>
Fri, 11 Jan 2013 19:24:26 +0000 (11:24 -0800)
committerRussell Belfer <rb@github.com>
Fri, 11 Jan 2013 19:24:26 +0000 (11:24 -0800)
commit0d65acade84a5ff2421cd52de82a8963f004d481
tree5c1f0ba04710e32642e32a4cadf7a8e14dc0aba6
parentd0b14cea0e1ff09af83a801c1a9cf1a431d46d0c
Match binary file check of core git in diff

Core git just looks for NUL bytes in files when deciding about
is-binary inside diff (although it uses a better algorithm in
checkout, when deciding if CRLF conversion should be done).
Libgit2 was using the better algorithm in both places, but that
is causing some confusion.  For now, this makes diff just look
for NUL bytes to decide if a file is binary by content in diff.
src/buf_text.c
src/buf_text.h
src/diff_output.c
tests-clar/core/buffer.c