mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor!: use named arguments if there is more than one
This commit is contained in:
parent
ec80ad3dd4
commit
5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions
|
@ -26,7 +26,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(sha, GitReset.hard);
|
||||
repo.reset(target: sha, resetType: GitReset.hard);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, isEmpty);
|
||||
});
|
||||
|
@ -35,7 +35,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(sha, GitReset.soft);
|
||||
repo.reset(target: sha, resetType: GitReset.soft);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
|
@ -50,7 +50,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(sha, GitReset.mixed);
|
||||
repo.reset(target: sha, resetType: GitReset.mixed);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue