Struct git_workarea::GitContext [] [src]

pub struct GitContext { /* fields omitted */ }

A context for performing git commands.

Methods

impl GitContext
[src]

Create a new context for the given directory.

Create a new context for the given directory with git configuration.

Run a git command in the context.

Fetch a commit from the given remote.

Fetch a commit from the given remote into a custom refname.

Fetch a commit from the given remote into a custom refname, allowing rewinds.

Create a tree where further work on the given revision can occur.

Reserve a refname for the given commit.

Returns the name of the reserved ref pointing to the given commit and its ID.

The refs are placed under the name parameter's directory as the {name}/heads/{id} name.

Reserve two refnames for the given commit.

Returns the names of the two reserved refs, the first pointing to the given commit and the second available for further work.

The refs are placed under the name parameter's directory in the {name}/heads/{id} and {name}/bases/{id} names. It is assumed that the bases refs are left alone other than in accordance with the workings of this routine.

Check if a topic commit is mergeable into a target branch.

The path to the git repository.

Trait Implementations

impl Debug for GitContext
[src]

Formats the value using the given formatter.

impl Clone for GitContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more