libgit2/include/git2
Russell Belfer 74ded02457 Add "as_path" parameters to blob and buffer diffs
This adds parameters to the four functions that allow for blob-to-
blob and blob-to-buffer differencing (either via callbacks or by
making a git_diff_patch object).  These parameters let you say
that filename we should pretend the blob has while doing the diff.
If you pass NULL, there should be no change from the existing
behavior, which is to skip using attributes for file type checks
and just look at content.  With the parameters, you can plug into
the new diff driver functionality and get binary or non-binary
behavior, plus function context regular expressions, etc.

This commit also fixes things so that the git_diff_delta that is
generated by these functions will actually be populated with the
data that we know about the blobs (or buffers) so you can use it
appropriately.  It also fixes a bug in generating patches from
the git_diff_patch objects created via these functions.

Lastly, there is one other behavior change that may matter.  If
there is no difference between the two blobs, these functions no
longer generate any diff callbacks / patches unless you have
passed in GIT_DIFF_INCLUDE_UNMODIFIED.  This is pretty natural,
but could potentially change the behavior of existing usage.
2013-06-17 17:03:34 -07:00
..
sys ...Aaaand this works 2013-05-30 03:47:10 +02:00
attr.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
blob.h Standardize cast versions of git_object accessors 2013-04-29 14:22:06 -07:00
branch.h Fix documentation of git_branch_delete. 2013-05-26 17:29:00 +02:00
checkout.h allow checkout to proceed when a dir to be removed is in use (win32) 2013-05-03 18:54:47 -05:00
clone.h Added support for setting transport flags (No check SSL cert) to git_clone call. 2013-05-31 08:53:22 -04:00
commit.h Add cat-file example and increase const use in API 2013-05-16 10:38:27 -07:00
common.h Docs for git_libgit2_opts and cache disable tweak 2013-05-24 10:33:41 -07:00
config.h Add high(est) config level for application specific config files 2013-06-11 23:37:02 +02:00
cred_helpers.h docs: formatting fixes 2013-04-24 20:25:57 +02:00
diff.h Add "as_path" parameters to blob and buffer diffs 2013-06-17 17:03:34 -07:00
errors.h Add typedefs on some public enums 2013-05-24 10:32:07 -07:00
graph.h graph: make the ahead-behind docs clearer 2013-03-22 20:27:59 +01:00
ignore.h update copyrights 2013-01-08 17:31:27 -06:00
index.h introduce git_conflict_iterator 2013-05-17 16:10:48 -05:00
indexer.h Move odb_backend implementors stuff into git2/sys 2013-04-21 11:50:55 -07:00
inttypes.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
merge.h Fix two typos in the merge docs. 2013-05-29 00:02:26 +03:00
message.h update copyrights 2013-01-08 17:31:27 -06:00
net.h No bitfields in public headers b/c packing is compiler-specific 2013-02-07 12:47:29 -05:00
notes.h fixed minor issues with new note iterator 2013-03-06 22:36:19 +01:00
object.h object: Export git_object_dup 2013-04-10 16:56:32 +02:00
odb_backend.h Add typedefs on some public enums 2013-05-24 10:32:07 -07:00
odb.h Move odb_backend implementors stuff into git2/sys 2013-04-21 11:50:55 -07:00
oid.h Add git_oid_nfmt - a flexible OID formatter 2013-05-17 16:40:00 -07:00
pack.h packbuilder: also write index in git_packbuilder_write 2013-05-27 13:41:09 +02:00
push.h push: fix typo in git_push_finish() doc 2013-02-15 13:12:16 +01:00
refdb.h Move git_reference__alloc to include/git2/sys 2013-04-21 12:52:17 -07:00
reflog.h update copyrights 2013-01-08 17:31:27 -06:00
refs.h Merge pull request #1624 from libgit2/vmg/full-ref-iterator 2013-06-03 09:28:58 -07:00
refspec.h remote: add resfpec list accessors 2013-04-30 12:04:59 +02:00
remote.h Proposal to handle default value (auto = 0) 2013-05-30 18:06:54 +02:00
repository.h Improve test failure output 2013-05-23 15:35:50 -07:00
reset.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
revparse.h revparse: Introduce git_revparse_ext() 2013-05-16 21:43:24 +02:00
revwalk.h Clean up minor details 2013-04-15 13:29:40 -07:00
signature.h update copyrights 2013-01-08 17:31:27 -06:00
stash.h update copyrights 2013-01-08 17:31:27 -06:00
status.h Clarify some docs and minor reordering 2013-06-17 10:03:48 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
strarray.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
submodule.h Update diff handling of untracked directories 2013-04-30 04:25:56 -07:00
tag.h tag: Introduce git_tag_annotation_create() 2013-05-21 19:32:59 +02:00
threads.h update copyrights 2013-01-08 17:31:27 -06:00
trace.h Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
transport.h Removed ifdef 2013-05-10 09:40:14 -04:00
tree.h Add cat-file example and increase const use in API 2013-05-16 10:38:27 -07:00
types.h status access by index, providing more details to callers 2013-06-17 10:03:14 -07:00
version.h libgit2 0.18.0 "Big Ben" 2013-04-16 17:45:12 +02:00