mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
feat(tag): add binding and API method for git_tag_target_id (#32)
This commit is contained in:
parent
6bdf133f06
commit
02ac220d46
3 changed files with 10 additions and 1 deletions
|
@ -65,6 +65,10 @@ 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 OID of the tagged object of a tag.
|
||||
Pointer<git_oid> targetOid(Pointer<git_tag> tag) =>
|
||||
libgit2.git_tag_target_id(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