libgit2/tests-clar/diff
Russell Belfer 145e696b49 Minor fixes, cleanups, and clarifications
There are three actual changes in this commit:

1. When the trailing newline of a file is removed in a diff, the
   change will now be reported with `GIT_DIFF_LINE_DEL_EOFNL` passed
   to the callback.  Previously, the `ADD_EOFNL` constant was given
   which was just an error in my understanding of when the various
   circumstances arose.  `GIT_DIFF_LINE_ADD_EOFNL` is deprecated and
   should never be generated.  A new newline is simply an `ADD`.
2. Rewrote the `diff_delta__merge_like_cgit` function that contains
   the core logic of the `git_diff_merge` implementation.  The new
   version doesn't actually have significantly different behavior,
   but the logic should be much more obvious, I think.
3. Fixed a bug in `git_diff_merge` where it freed a string pool
   while some of the string data was still in use.  This led to
   `git_diff_print_patch` accessing memory that had been freed.

The rest of this commit contains improved documentation in `diff.h`
to make the behavior and the equivalencies with core git clearer,
and a bunch of new tests to cover the various cases, oh and a minor
simplification of `examples/diff.c`.
2012-06-08 12:11:13 -07:00
..
blob.c Fix MSVC compilation issue 2012-05-09 21:14:49 +02:00
diff_helpers.c Minor fixes, cleanups, and clarifications 2012-06-08 12:11:13 -07:00
diff_helpers.h diff: fix the diffing of two identical blobs 2012-05-07 12:18:33 +02:00
index.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
iterator.c Fix git_status_file for files that start with a character > 0x7f 2012-06-07 09:50:19 -04:00
patch.c Fix usage of "new" for fieldname in public header 2012-05-02 15:34:58 -07:00
tree.c Minor fixes, cleanups, and clarifications 2012-06-08 12:11:13 -07:00
workdir.c Minor fixes, cleanups, and clarifications 2012-06-08 12:11:13 -07:00