Struct git2::Tag
[−]
[src]
pub struct Tag<'repo> { /* fields omitted */ }
A structure to represent a git tag
Methods
impl<'repo> Tag<'repo>
[src]
fn id(&self) -> Oid
[src]
Get the id (SHA1) of a repository tag
fn message(&self) -> Option<&str>
[src]
Get the message of a tag
Returns None if there is no message or if it is not valid utf8
fn message_bytes(&self) -> Option<&[u8]>
[src]
Get the message of a tag
Returns None if there is no message
fn name(&self) -> Option<&str>
[src]
Get the name of a tag
Returns None if it is not valid utf8
fn name_bytes(&self) -> &[u8]
[src]
Get the name of a tag
fn peel(&self) -> Result<Object<'repo>, Error>
[src]
Recursively peel a tag until a non tag git_object is found
fn tagger(&self) -> Option<Signature>
[src]
Get the tagger (author) of a tag
If the author is unspecified, then None
is returned.
fn target(&self) -> Result<Object<'repo>, Error>
[src]
Get the tagged object of a tag
This method performs a repository lookup for the given object and returns it
fn target_id(&self) -> Oid
[src]
Get the OID of the tagged object of a tag
fn target_type(&self) -> Option<ObjectType>
[src]
Get the OID of the tagged object of a tag
fn as_object(&self) -> &Object<'repo>
[src]
Casts this Tag to be usable as an Object
fn into_object(self) -> Object<'repo>
[src]
Consumes Tag to be returned as an Object