summaryrefslogtreecommitdiff
path: root/patch.go
AgeCommit message (Collapse)Author
2018-08-08Remove uses of deprecated git_buf_freeCarlos Martín Nieto
2017-09-29patch: adjust to new function signatureCarlos Martín Nieto
2017-09-03Go back to the v0.26 libgit2 releaseCarlos Martín Nieto
Newer commits have changed the build scripts such that the HTTP parser is not included in the static library. This also reverts commit ecf4f7a137ba69014d414b8de20eb58e115bfd73.
2017-09-03patch: correct a pointer typeCarlos Martín Nieto
2017-07-08Third round of keep-alive aditionsCarlos Martín Nieto
2017-03-23Fix memory leak in Patch.String()Adam Berkovec
Buffer allocated in Patch.String() was never freed Signed-off-by: Can Berk Güder <[email protected]>
2014-12-11Add missing thread-lockingCarlos Martín Nieto
2014-12-06Export PatchFromBuffers function.Jose Alvarez
This change also factor out diffOptionsToC function to remove duplicated code.
2014-12-06Add missing thread lockingCarlos Martín Nieto
2014-03-21don't expose 3 different diff foreach methods. use structures instead of ↵Jesse Ezell
pointers to structures for diff detail. add patch error code handling. trim excess data from diff structures.
2014-03-20set ptr to nil after freeJesse Ezell
2014-03-20refactor and cleanup codeJesse Ezell
2014-03-20cleanup and refactor diff / patchJesse Ezell
2014-02-20Add partial diff/patch functionality.lye
This commit adds barebones capacity to generate diffs from two trees and to emit those as git-style diffs (via `Patch.String`), or to enumerate the files/hunks/lines in the diff to emit the data yourself. The walk functions have been implemented in the same manner as the Odb walking methods. Note that not all of the functionality is implemented for either the `git_diff_*` nor the `git_patch_*` functions, and there are unexposed constants which would likely be useful to add.