Russell Belfer
5735bf5e6a
Fix diff API to better parameter order
...
The diff API is not in the parameter order one would expect from
other libgit2 APIs. This fixes that.
2012-11-14 22:54:31 -08:00
Russell Belfer
93cf7bb8e2
Add git_diff_patch_to_str API
...
This adds an API to generate a complete single-file patch text
from a git_diff_patch object.
2012-10-24 20:56:32 -07:00
Russell Belfer
bae957b95d
Add const to all shared pointers in diff API
...
There are a lot of places where the diff API gives the user access
to internal data structures and many of these were being exposed
through non-const pointers. This replaces them all with const
pointers for any object that the user can access but is still
owned internally to the git_diff_list or git_diff_patch objects.
This will probably break some bindings... Sorry!
2012-09-25 16:35:05 -07:00
Russell Belfer
16b83019af
Fix usage of "new" for fieldname in public header
...
This should restore the ability to include libgit2 headers
in C++ projects.
Cherry picked 2de60205df
from
development into new-error-handling.
2012-05-02 15:34:58 -07:00
Michael Schubert
52877c8975
tests-clar/diff: mark output_len unused
2012-05-01 15:13:14 +02:00
nulltoken
1d2dd864ad
diff: provide more context to the consumer of the callbacks
...
Update the callback to provide some information related to the file change being processed and the range of the hunk, when applicable.
2012-04-30 07:12:26 +02:00
nulltoken
eb3d71a5bc
diff: fix generation of the header of a removal patch
2012-04-25 15:37:17 -07:00