mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor!: use class names instead of aliases from Repository in tests (#37)
BREAKING CHANGE: move API methods related to diffing into Diff class
This commit is contained in:
parent
3e1ece4e6f
commit
08cbe8a17f
28 changed files with 943 additions and 834 deletions
|
@ -65,12 +65,12 @@ class Submodule {
|
|||
/// Throws a [LibGit2Error] if error occured.
|
||||
static void init({
|
||||
required Repository repo,
|
||||
required String submodule,
|
||||
required String name,
|
||||
bool overwrite = false,
|
||||
}) {
|
||||
final submodulePointer = bindings.lookup(
|
||||
repoPointer: repo.pointer,
|
||||
name: submodule,
|
||||
name: name,
|
||||
);
|
||||
|
||||
bindings.init(submodulePointer: submodulePointer, overwrite: overwrite);
|
||||
|
@ -91,13 +91,13 @@ class Submodule {
|
|||
/// Throws a [LibGit2Error] if error occured.
|
||||
static void update({
|
||||
required Repository repo,
|
||||
required String submodule,
|
||||
required String name,
|
||||
bool init = false,
|
||||
Callbacks callbacks = const Callbacks(),
|
||||
}) {
|
||||
final submodulePointer = bindings.lookup(
|
||||
repoPointer: repo.pointer,
|
||||
name: submodule,
|
||||
name: name,
|
||||
);
|
||||
|
||||
bindings.update(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue