mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(branch): add more bindings and api methods (#13)
This commit is contained in:
parent
a3f2dcc211
commit
33d2750d38
8 changed files with 356 additions and 17 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue