libgit2/tests-clar/diff
Russell Belfer 71a3d27ea6 Replace diff delta binary with flags
Previously the git_diff_delta recorded if the delta was binary.
This replaces that (with no net change in structure size) with
a full set of flags.  The flag values that were already in use
for individual git_diff_file objects are reused for the delta
flags, too (along with renaming those flags to make it clear that
they are used more generally).

This (a) makes things somewhat more consistent (because I was
using a -1 value in the "boolean" binary field to indicate unset,
whereas now I can just use the flags that are easier to understand),
and (b) will make it easier for me to add some additional flags to
the delta object in the future, such as marking the results of a
copy/rename detection or other deltas that might want a special
indicator.

While making this change, I officially moved some of the flags that
were internal only into the private diff header.

This also allowed me to remove a gross hack in rename/copy detect
code where I was overwriting the status field with an internal
value.
2013-02-20 15:10:21 -08:00
..
blob.c More diff tests with binary data 2013-02-11 14:45:46 -08:00
diff_helpers.c Replace diff delta binary with flags 2013-02-20 15:10:21 -08:00
diff_helpers.h diff: add a notify callback to git_diff__from_iterators 2013-02-07 20:44:35 +01:00
diffiter.c Replace diff delta binary with flags 2013-02-20 15:10:21 -08:00
index.c Fix some leaks and (possibly) dangling pointers in tests 2012-12-19 08:04:31 +01:00
iterator.c Fix case sensitivity bug with tree iterators 2013-01-22 15:28:25 -08:00
patch.c Fix MSVC compilation warnings 2013-02-05 20:33:27 +01:00
rename.c Deploy GIT_DIFF_FIND_OPTIONS_INIT 2012-11-30 13:12:15 -08:00
tree.c diff: Enhance tree-to-tree diff test coverage 2013-02-06 19:45:44 +01:00
workdir.c diff: add a notify callback to git_diff__from_iterators 2013-02-07 20:44:35 +01:00