mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor(revparse)!: use same name for revspec flags as in libgit2
This commit is contained in:
parent
a1e420d86c
commit
825f3f9926
3 changed files with 13 additions and 13 deletions
|
@ -81,7 +81,7 @@ void main() {
|
|||
|
||||
expect(revspec.from.id.sha, headSHA);
|
||||
expect(revspec.to, isNull);
|
||||
expect(revspec.flags, {GitRevParse.single});
|
||||
expect(revspec.flags, {GitRevSpec.single});
|
||||
|
||||
revspec.from.free();
|
||||
|
||||
|
@ -89,7 +89,7 @@ void main() {
|
|||
|
||||
expect(revspec.from.id.sha, parentSHA);
|
||||
expect(revspec.to?.id.sha, '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4');
|
||||
expect(revspec.flags, {GitRevParse.range});
|
||||
expect(revspec.flags, {GitRevSpec.range});
|
||||
|
||||
revspec.from.free();
|
||||
revspec.to?.free();
|
||||
|
@ -98,7 +98,7 @@ void main() {
|
|||
|
||||
expect(revspec.from.id.sha, headSHA);
|
||||
expect(revspec.to?.id.sha, '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4');
|
||||
expect(revspec.flags, {GitRevParse.range, GitRevParse.mergeBase});
|
||||
expect(revspec.flags, {GitRevSpec.range, GitRevSpec.mergeBase});
|
||||
expect(
|
||||
repo.mergeBase(revspec.from.id.sha, revspec.to!.id.sha),
|
||||
isA<Oid>(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue