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

@ -89,8 +89,8 @@ void main() {
final branches = repo.branches;
for (final branch in branches) {
final ref = repo.lookupReference('refs/heads/${branch.name}');
for (final commit in repo.log(sha: ref.target.sha)) {
packBuilder.addRecursively(commit.id);
for (final commit in repo.log(oid: ref.target)) {
packBuilder.addRecursively(commit.oid);
commit.free();
}
ref.free();