]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/diff_file.c
Add buffer to buffer diff and patch APIs
authorRussell Belfer <rb@github.com>
Thu, 27 Feb 2014 22:13:22 +0000 (14:13 -0800)
committerRussell Belfer <rb@github.com>
Thu, 27 Feb 2014 22:13:22 +0000 (14:13 -0800)
commit6789b7a75d1e24a7f4ce34628c6b4561517f0b73
tree74ca53d8808a16090bb4df867b38c4a07444f8e1
parentd88399922f622baef91c6f4e4e67b2091653cb65
Add buffer to buffer diff and patch APIs

This adds `git_diff_buffers` and `git_patch_from_buffers`.  This
also includes a bunch of internal refactoring to increase the
shared code between these functions and the blob-to-blob and
blob-to-buffer APIs, as well as some higher level assert helpers
in the tests to also remove redundancy.
include/git2/diff.h
include/git2/patch.h
src/diff_file.c
src/diff_file.h
src/diff_patch.c
tests/diff/blob.c