Skip to main content

RepoPath

Trait RepoPath 

Source
pub trait RepoPath<'a>: Sized {
    // Required method
    fn repo_path(self, path: &'a Path) -> Self;
}
Expand description

Trait for git command builders that support a repository path.

Provides the repo_path method to set -C <path>.

Required Methods§

Source

fn repo_path(self, path: &'a Path) -> Self

Set the repository path (-C <path>).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> RepoPath<'a> for git_proc::add::Add<'a>

Source§

impl<'a> RepoPath<'a> for Commit<'a>

Source§

impl<'a> RepoPath<'a> for Config<'a>

Source§

impl<'a> RepoPath<'a> for Fetch<'a>

Source§

impl<'a> RepoPath<'a> for LsRemote<'a>

Source§

impl<'a> RepoPath<'a> for Push<'a>

Source§

impl<'a> RepoPath<'a> for Remote<'a>

Source§

impl<'a> RepoPath<'a> for RevList<'a>

Source§

impl<'a> RepoPath<'a> for RevParse<'a>

Source§

impl<'a> RepoPath<'a> for Show<'a>

Source§

impl<'a> RepoPath<'a> for ShowRef<'a>

Source§

impl<'a> RepoPath<'a> for Status<'a>

Source§

impl<'a> RepoPath<'a> for git_proc::worktree::Add<'a>

Source§

impl<'a> RepoPath<'a> for List<'a>

Source§

impl<'a> RepoPath<'a> for Remove<'a>