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
|
@ -72,7 +72,7 @@ void main() {
|
|||
|
||||
test('clones repository with provided remote callback', () {
|
||||
Remote remote(Repository repo, String name, String url) =>
|
||||
repo.createRemote(name: 'test', url: tmpDir.path);
|
||||
Remote.create(repo: repo, name: 'test', url: tmpDir.path);
|
||||
|
||||
final clonedRepo = Repository.clone(
|
||||
url: tmpDir.path,
|
||||
|
@ -90,7 +90,7 @@ void main() {
|
|||
|
||||
test('throws when cloning repository with invalid remote callback', () {
|
||||
Remote remote(Repository repo, String name, String url) =>
|
||||
repo.createRemote(name: '', url: '');
|
||||
Remote.create(repo: repo, name: '', url: '');
|
||||
|
||||
expect(
|
||||
() => Repository.clone(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue