mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor(repository)!: remove excessive aliases (#40)
BREAKING CHANGE: instead of removed aliases, API methods from relevant classes should be called (e.g. Commit.create, Reference.lookup, etc.)
This commit is contained in:
parent
432abffa89
commit
e7c18c35e2
13 changed files with 144 additions and 1063 deletions
|
@ -41,7 +41,7 @@ void main() {
|
|||
});
|
||||
|
||||
test('creates annotated commit from provided reference', () {
|
||||
final reference = repo.lookupReference('refs/heads/master');
|
||||
final reference = Reference.lookup(repo: repo, name: 'refs/heads/master');
|
||||
final annotated = AnnotatedCommit.fromReference(
|
||||
repo: repo,
|
||||
reference: reference,
|
||||
|
@ -57,7 +57,7 @@ void main() {
|
|||
test(
|
||||
'throws when trying to create annotated commit from provided '
|
||||
'reference and error occurs', () {
|
||||
final reference = repo.lookupReference('refs/heads/master');
|
||||
final reference = Reference.lookup(repo: repo, name: 'refs/heads/master');
|
||||
|
||||
expect(
|
||||
() => AnnotatedCommit.fromReference(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue