[][src]Struct mhgit::commands::PushOptions

pub struct PushOptions { /* fields omitted */ }

git push command.

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

let repo = Repository::new();
PushOptions::new()
    .run(&repo)?;

Implementations

impl PushOptions[src]

pub fn new() -> PushOptions[src]

Create a new set of git tag options.

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

Add --all option.

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

Add --tags option.

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

Add --force option.

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

Add --set-upstream option.

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

Add refspec to push command.

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

Add multiple refspecs to push command.

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

Set remote repository source.

Trait Implementations

impl CommandOptions for PushOptions[src]

type Output = ()

impl Debug for PushOptions[src]

impl Default for PushOptions[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.