pub struct TreeUpdateBuilder { /* private fields */ }
Expand description

A builder struct for git tree updates, for use with git_tree_create_updated.

Implementations

Create a new empty series of updates.

Add an update removing the specified path from a tree.

Add an update setting the specified path to a specific Oid, whether it currently exists or not.

Note that libgit2 does not support an upsert of a previously removed path, or an upsert that changes the type of an object (such as from tree to blob or vice versa).

Create a new tree from the specified baseline and this series of updates.

The baseline tree must exist in the specified repository.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.