mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 20:59:08 -04:00
fix(tag): tag can point to any type of git object
This commit is contained in:
parent
fb69de66d2
commit
56713da648
4 changed files with 25 additions and 5 deletions
|
@ -34,6 +34,9 @@ Pointer<git_object> target(Pointer<git_tag> tag) {
|
|||
}
|
||||
}
|
||||
|
||||
/// Get the type of a tag's tagged object.
|
||||
int targetType(Pointer<git_tag> tag) => libgit2.git_tag_target_type(tag);
|
||||
|
||||
/// Get the id of a tag.
|
||||
Pointer<git_oid> id(Pointer<git_tag> tag) => libgit2.git_tag_id(tag);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue