fix(tag): tag can point to any type of git object

This commit is contained in:
Aleksey Kulikov 2021-09-04 13:52:29 +03:00
parent fb69de66d2
commit 56713da648
4 changed files with 25 additions and 5 deletions

View file

@ -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);