feat(patch)!: divide Patch.create() into specific methods (#38)

BREAKING CHANGE: remove patch generation methods from Blob class
This commit is contained in:
Aleksey Kulikov 2022-01-25 15:58:06 +03:00 committed by GitHub
parent 08cbe8a17f
commit 0844f03387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
106 changed files with 156 additions and 6171 deletions

View file

@ -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,
);