refactor(checkout)!: move checkout related methods into Checkout class

This commit is contained in:
Aleksey Kulikov 2022-01-25 20:08:53 +03:00
parent 570c696269
commit 852af616e8
10 changed files with 238 additions and 135 deletions

View file

@ -172,7 +172,8 @@ Another feature edit
repo: repo,
oid: conflictBranch.target,
);
repo.checkout(target: 'refs/heads/feature');
Checkout.reference(repo: repo, name: 'refs/heads/feature');
repo.setHead('refs/heads/feature');
final index = repo.index;
Merge.commit(repo: repo, commit: commit);