]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/patch_generate.c
diff: determine DIFFABLE-ness for binaries
authorEdward Thomson <ethomson@edwardthomson.com>
Wed, 24 Jun 2015 16:06:41 +0000 (12:06 -0400)
committerEdward Thomson <ethomson@edwardthomson.com>
Wed, 24 Jun 2015 16:06:41 +0000 (12:06 -0400)
commit54077091c8cc12d83ad10b3252462c591c960de8
treebffe1a4ca0ab10d6fd782158553ba7071c8b3ac1
parentba8fb7c46ac66e941f9452c9743c13fc2daaa85b
diff: determine DIFFABLE-ness for binaries

Always set `GIT_DIFF_PATCH_DIFFABLE` for all files, regardless of
binary-ness, so that the binary callback is invoked to either
show the binary contents, or just print the standard "Binary files
differ" message.  We may need to do deeper inspection for binary
files where we have avoided loading the contents into a file map.
src/diff_patch.c
src/diff_patch.h