Struct git2::Refspec [−][src]
pub struct Refspec<'remote> { /* fields omitted */ }
Expand description
A structure to represent a git refspec.
Refspecs are currently mainly accessed/created through a Remote
.
Implementations
impl<'remote> Refspec<'remote>
[src]
impl<'remote> Refspec<'remote>
[src]pub fn dst(&self) -> Option<&str>
[src]
pub fn dst(&self) -> Option<&str>
[src]Get the destination specifier.
If the destination is not utf-8, None is returned.
pub fn dst_matches(&self, refname: &str) -> bool
[src]
pub fn dst_matches(&self, refname: &str) -> bool
[src]Check if a refspec’s destination descriptor matches a reference
pub fn src(&self) -> Option<&str>
[src]
pub fn src(&self) -> Option<&str>
[src]Get the source specifier.
If the source is not utf-8, None is returned.
pub fn src_matches(&self, refname: &str) -> bool
[src]
pub fn src_matches(&self, refname: &str) -> bool
[src]Check if a refspec’s source descriptor matches a reference
pub fn str(&self) -> Option<&str>
[src]
pub fn str(&self) -> Option<&str>
[src]Get the refspec’s string.
Returns None if the string is not valid utf8.