Struct git2::Refspec [] [src]

pub struct Refspec<'remote> { /* fields omitted */ }

A structure to represent a git refspec.

Refspecs are currently mainly accessed/created through a Remote.

Methods

impl<'remote> Refspec<'remote>
[src]

Get the refspec's direction.

Get the destination specifier.

If the destination is not utf-8, None is returned.

Get the destination specifier, in bytes.

Check if a refspec's destination descriptor matches a reference

Get the source specifier.

If the source is not utf-8, None is returned.

Get the source specifier, in bytes.

Check if a refspec's source descriptor matches a reference

Get the force update setting.

Get the refspec's string.

Returns None if the string is not valid utf8.

Get the refspec's string as a byte array