refactor: use git_diff_to_buf to produce patch diff text

This commit is contained in:
Aleksey Kulikov 2022-02-24 10:48:08 +03:00
parent 2eb50dec69
commit f4e9ae4167
3 changed files with 11 additions and 31 deletions

View file

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