libgit2/include/git2
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
..
attr.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
blob.h blob: add git_blob_create_fromchunks() 2012-06-07 20:33:22 +02:00
branch.h errors: Rename error codes 2012-05-18 01:48:50 +02:00
commit.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
common.h Revert "Specifiy dllimport to MSVC if we're not building libgit2.dll" 2012-05-14 22:15:53 +02:00
config.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
diff.h Minor fixes, cleanups, and clarifications 2012-06-08 12:11:13 -07:00
errors.h ssl: check certificates against the system's trusted CAs 2012-05-19 17:51:53 +02:00
index.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
indexer.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
inttypes.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
merge.h Move git_merge_base() to is own header and document it 2012-04-12 20:25:25 +02:00
net.h Update Copyright header 2012-02-13 17:11:09 +01:00
notes.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
object.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
odb_backend.h Properly tag all enums with a _t 2012-05-18 01:26:23 +02:00
odb.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
oid.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
reflog.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
refs.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
refspec.h refspec: expose the force update specifier through git_refspec_force() accessor 2012-05-30 01:05:17 +02:00
remote.h Merge pull request #697 from carlosmn/ssl 2012-06-05 13:53:33 -07:00
repository.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
reset.h Add git_reset() 2012-06-07 21:27:30 +02:00
revparse.h Adding comment documentation for rev-parse api. 2012-05-11 11:30:46 -07:00
revwalk.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
signature.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
status.h Fix filemode comparison in diffs 2012-06-08 12:09:10 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
submodule.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
tag.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
threads.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
types.h Add git_reset() 2012-06-07 21:27:30 +02:00
version.h libgit2 v0.17.0 "Lord of Diffstruction" 2012-05-19 01:40:46 +02:00
windows.h Update Copyright header 2012-02-13 17:11:09 +01:00