refactor!: use Oid instead of String for arguments

This commit is contained in:
Aleksey Kulikov 2021-10-13 15:31:20 +03:00
parent 23787adc3a
commit 1972c6d1ab
39 changed files with 264 additions and 290 deletions

View file

@ -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');