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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue