[][src]Struct mhgit::commands::PullOptions

pub struct PullOptions { /* fields omitted */ }

git pull command.

use mhgit::{CommandOptions, Repository};
use mhgit::commands::PullOptions;

let repo = Repository::new();
PullOptions::new()
    .remote("origin")
    .refspec("master")
    .run(&repo)?;

Implementations

impl PullOptions[src]

pub fn new() -> PullOptions[src]

Create a new set of git pull options.

pub fn allow_unrelated(&mut self, val: bool) -> &mut PullOptions[src]

Add --allow-unrelated option.

pub fn refspec(&mut self, file: impl ToString) -> &mut PullOptions[src]

Add refspec to pull command.

pub fn refspecs<I, S>(&mut self, files: I) -> &mut PullOptions where
    I: IntoIterator<Item = S>,
    S: ToString
[src]

Add multiple refspecs to pull command.

pub fn remote(&mut self, repo: impl ToString) -> &mut PullOptions[src]

Set remote repository source.

Trait Implementations

impl CommandOptions for PullOptions[src]

type Output = ()

impl Debug for PullOptions[src]

impl Default for PullOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.