mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(patch)!: divide Patch.create() into specific methods (#38)
BREAKING CHANGE: remove patch generation methods from Blob class
This commit is contained in:
parent
08cbe8a17f
commit
0844f03387
106 changed files with 156 additions and 6171 deletions
|
@ -57,9 +57,9 @@ Pointer<git_patch> fromBuffers({
|
|||
/// You can use the standard patch accessor functions to read the patch data,
|
||||
/// and you must free the patch when done.
|
||||
Pointer<git_patch> fromBlobs({
|
||||
required Pointer<git_blob> oldBlobPointer,
|
||||
required Pointer<git_blob>? oldBlobPointer,
|
||||
String? oldAsPath,
|
||||
required Pointer<git_blob> newBlobPointer,
|
||||
required Pointer<git_blob>? newBlobPointer,
|
||||
String? newAsPath,
|
||||
required int flags,
|
||||
required int contextLines,
|
||||
|
@ -76,9 +76,9 @@ Pointer<git_patch> fromBlobs({
|
|||
|
||||
libgit2.git_patch_from_blobs(
|
||||
out,
|
||||
oldBlobPointer,
|
||||
oldBlobPointer ?? nullptr,
|
||||
oldAsPathC,
|
||||
newBlobPointer,
|
||||
newBlobPointer ?? nullptr,
|
||||
newAsPathC,
|
||||
opts,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue