refactor!: use named arguments if there is more than one

This commit is contained in:
Aleksey Kulikov 2021-09-30 18:04:36 +03:00
parent ec80ad3dd4
commit 5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions

View file

@ -13,7 +13,7 @@ void main() {
setUp(() async {
tmpDir = await setupRepo(Directory('test/assets/testrepo/'));
repo = Repository.open(tmpDir.path);
tag = Tag.lookup(repo, tagSHA);
tag = Tag.lookup(repo: repo, sha: tagSHA);
});
tearDown(() async {
@ -58,7 +58,7 @@ void main() {
const message = 'init tag\n';
final oid = Tag.create(
repository: repo,
repo: repo,
tagName: tagName,
target: target,
targetType: GitObject.commit,
@ -66,7 +66,7 @@ void main() {
message: message,
);
final newTag = Tag.lookup(repo, oid.sha);
final newTag = Tag.lookup(repo: repo, sha: oid.sha);
final tagger = newTag.tagger;
final newTagTarget = newTag.target as Commit;