mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
style: use conts for constructors
This commit is contained in:
parent
e0e16aea30
commit
7187d890d6
17 changed files with 39 additions and 69 deletions
|
@ -5,16 +5,13 @@ import 'bindings/patch.dart' as bindings;
|
|||
import 'blob.dart';
|
||||
import 'diff.dart';
|
||||
import 'git_types.dart';
|
||||
import 'util.dart';
|
||||
|
||||
class Patch {
|
||||
/// Initializes a new instance of [Patch] class from provided
|
||||
/// pointer to patch object in memory and pointers to old and new blobs/buffers.
|
||||
///
|
||||
/// Should be freed with `free()` to release allocated memory.
|
||||
Patch(this._patchPointer, this._aPointer, this._bPointer) {
|
||||
libgit2.git_libgit2_init();
|
||||
}
|
||||
Patch(this._patchPointer, this._aPointer, this._bPointer);
|
||||
|
||||
/// Directly generates a patch from the difference between two blobs, buffers or
|
||||
/// blob and a buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue