mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor!: use Oid instead of String for arguments
This commit is contained in:
parent
23787adc3a
commit
1972c6d1ab
39 changed files with 264 additions and 290 deletions
|
@ -25,7 +25,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(target: sha, resetType: GitReset.hard);
|
||||
repo.reset(oid: repo[sha], resetType: GitReset.hard);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, isEmpty);
|
||||
});
|
||||
|
@ -34,7 +34,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(target: sha, resetType: GitReset.soft);
|
||||
repo.reset(oid: repo[sha], resetType: GitReset.soft);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
|
@ -49,7 +49,7 @@ void main() {
|
|||
var contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
repo.reset(target: sha, resetType: GitReset.mixed);
|
||||
repo.reset(oid: repo[sha], resetType: GitReset.mixed);
|
||||
contents = file.readAsStringSync();
|
||||
expect(contents, 'Feature edit\n');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue