Carlos Martín Nieto
538a05d55c
Remove uses of deprecated git_buf_free
2018-08-08 11:51:51 +02:00
Carlos Martín Nieto
a69a0b1919
patch: adjust to new function signature
2017-09-29 09:49:21 +02:00
Carlos Martín Nieto
0ebe7220d7
Go back to the v0.26 libgit2 release
...
Newer commits have changed the build scripts such that the HTTP parser is not
included in the static library.
This also reverts commit ecf4f7a137
.
2017-09-03 19:49:30 +02:00
Carlos Martín Nieto
ecf4f7a137
patch: correct a pointer type
2017-09-03 16:59:05 +02:00
Carlos Martín Nieto
55a1096141
Third round of keep-alive aditions
2017-07-08 16:07:51 +02:00
Adam Berkovec
de521bb2b4
Fix memory leak in Patch.String()
...
Buffer allocated in Patch.String() was never freed
Signed-off-by: Can Berk Güder <cbguder@pivotal.io>
2017-03-23 12:16:43 -07:00
Carlos Martín Nieto
cb6201b633
Add missing thread-locking
2014-12-11 02:46:42 +01:00
Jose Alvarez
db17135a30
Export PatchFromBuffers function.
...
This change also factor out diffOptionsToC function to remove
duplicated code.
2014-12-06 16:29:25 -05:00
Carlos Martín Nieto
8c631b0c25
Add missing thread locking
2014-12-06 02:45:26 +01:00
Jesse Ezell
155f641683
don't expose 3 different diff foreach methods. use structures instead of pointers to structures for diff detail. add patch error code handling. trim excess data from diff structures.
2014-03-21 22:51:38 -07:00
Jesse Ezell
aea899e877
set ptr to nil after free
2014-03-20 23:19:22 -07:00
Jesse Ezell
d78036fe24
refactor and cleanup code
2014-03-20 22:54:18 -07:00
Jesse Ezell
d0b334b244
cleanup and refactor diff / patch
2014-03-20 21:56:41 -07:00
lye
bc80beb843
Add partial diff/patch functionality.
...
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.
2014-02-20 00:29:03 -06:00