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
Get the destination specifier.
If the destination is not utf-8, None is returned.
Check if a refspec’s destination descriptor matches a reference
Get the source specifier.
If the source is not utf-8, None is returned.
Check if a refspec’s source descriptor matches a reference
Get the refspec’s string.
Returns None if the string is not valid utf8.