Struct git_workarea::GitContext [] [src]

pub struct GitContext { /* fields omitted */ }

A context for performing git commands.

Methods

impl GitContext
[src]

[src]

Create a new context for the given directory.

[src]

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

[src]

Run a git command in the context.

This builds a Command with the proper environment to operate within the context.

[src]

Fetch references from the given remote.

The remote is interpreted by Git, so it can be a remote or a specific URL.

[src]

Fetch a commit from the given remote into a specific local refname.

[src]

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

[src]

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

[src]

Reserve a refname for the given commit.

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

The reserved reference is created as refs/{name}/heads/{id} where id is a unique integer (which is also returned).

[src]

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 reserved references are created as refs/{name}/heads/{id} and refs/{name}/bases/{id} where the bases reference is available to point to an object associated with the heads reference.

It is assumed that the bases refs are aligned with the heads references and not used for other purposes.

[src]

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

[src]

The path to the git repository.

Trait Implementations

impl Debug for GitContext
[src]

[src]

Formats the value using the given formatter.

impl Clone for GitContext
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more