mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
refactor(reference): simplify api
This commit is contained in:
parent
466f960c7b
commit
3c1a6b4ab4
6 changed files with 113 additions and 191 deletions
|
@ -23,7 +23,7 @@ class RevParse {
|
|||
final pointers = bindings.revParseExt(repo.pointer, spec);
|
||||
object = Commit(pointers[0].cast<git_commit>());
|
||||
if (pointers.length == 2) {
|
||||
reference = Reference(repo.pointer, pointers[1].cast<git_reference>());
|
||||
reference = Reference(pointers[1].cast<git_reference>());
|
||||
} else {
|
||||
reference = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue