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