refactor!: use class names instead of aliases from Repository in tests

BREAKING CHANGE: move API methods related to diffing into Diff class
This commit is contained in:
Aleksey Kulikov 2022-01-25 11:56:32 +03:00
parent 3e1ece4e6f
commit 24378b629c
28 changed files with 943 additions and 834 deletions

View file

@ -188,10 +188,14 @@ void main() {
test('packs with provided packDelegate', () {
Directory(packDirPath).createSync();
void packDelegate(PackBuilder packBuilder) {
final branches = repo.branchesLocal;
for (final branch in branches) {
final ref = repo.lookupReference('refs/heads/${branch.name}');
final ref = Reference.lookup(
repo: repo,
name: 'refs/heads/${branch.name}',
);
for (final commit in repo.log(oid: ref.target)) {
packBuilder.addRecursively(commit.oid);
commit.free();