feat(branch): add more bindings and api methods (#13)

This commit is contained in:
Aleksey Kulikov 2021-12-03 11:17:48 +03:00 committed by GitHub
parent a3f2dcc211
commit 33d2750d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 356 additions and 17 deletions

View file

@ -123,7 +123,7 @@ void main() {
test('successfully packs with provided packDelegate', () {
Directory('${repo.workdir}.git/objects/pack/').createSync();
void packDelegate(PackBuilder packBuilder) {
final branches = repo.branches;
final branches = repo.branchesLocal;
for (final branch in branches) {
final ref = repo.lookupReference('refs/heads/${branch.name}');
for (final commit in repo.log(oid: ref.target)) {