Struct git_workarea::PreparedGitWorkArea
[−]
[src]
pub struct PreparedGitWorkArea { /* fields omitted */ }
A representation of an empty work area where actions which require a work tree and an index may be preformed.
Methods
impl PreparedGitWorkArea
[src]
fn new(context: GitContext, rev: &CommitId) -> Result<Self>
Create an area for performing actions which require a work tree.
fn git(&self) -> Command
Run a git command in the work area.
fn setup_merge<'a>(&'a self,
bases: &[CommitId],
base: &CommitId,
topic: &CommitId)
-> Result<MergeResult<'a>>
bases: &[CommitId],
base: &CommitId,
topic: &CommitId)
-> Result<MergeResult<'a>>
Prepare a command to create a merge commit. It does not actually perform the commit since authorship can be provided through the command's environment.
fn gitdir(&self) -> &Path
The path to the git repository.
fn submodule_config(&self) -> &SubmoduleConfig
The submodule configuration for the repository.