mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: use classes instead of enums for git types
This commit is contained in:
parent
ebfc67ee0d
commit
da3bda077a
15 changed files with 135 additions and 77 deletions
|
@ -3,9 +3,8 @@ import 'bindings/libgit2_bindings.dart';
|
|||
import 'bindings/treebuilder.dart' as bindings;
|
||||
import 'repository.dart';
|
||||
import 'oid.dart';
|
||||
import 'enums.dart';
|
||||
import 'git_types.dart';
|
||||
import 'tree.dart';
|
||||
import 'util.dart';
|
||||
|
||||
class TreeBuilder {
|
||||
/// Initializes a new instance of [TreeBuilder] class from provided
|
||||
|
@ -62,7 +61,7 @@ class TreeBuilder {
|
|||
_treeBuilderPointer,
|
||||
filename,
|
||||
id.pointer,
|
||||
gitFilemodeToInt(filemode),
|
||||
filemode.value,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue