mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(index): add base bindings and api
This commit is contained in:
parent
9a737f8d3e
commit
5b8f089723
5 changed files with 523 additions and 2 deletions
|
@ -44,8 +44,8 @@ class Reference {
|
|||
late final Oid oid;
|
||||
late final bool isDirect;
|
||||
|
||||
if (target.runtimeType == Oid) {
|
||||
oid = target as Oid;
|
||||
if (target is Oid) {
|
||||
oid = target;
|
||||
isDirect = true;
|
||||
} else if (isValidShaHex(target as String)) {
|
||||
if (target.length == 40) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue