mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: use git_diff_to_buf to produce patch diff text
This commit is contained in:
parent
2eb50dec69
commit
f4e9ae4167
3 changed files with 11 additions and 31 deletions
|
@ -153,9 +153,6 @@ class Patch {
|
|||
|
||||
late final Pointer<git_patch> _patchPointer;
|
||||
|
||||
/// Pointer to memory address for allocated patch object.
|
||||
Pointer<git_patch> get pointer => _patchPointer;
|
||||
|
||||
/// Line counts of each type in a patch.
|
||||
PatchStats get stats {
|
||||
final result = bindings.lineStats(_patchPointer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue