pub struct WorktreeAddOptions<'a> { /* private fields */ }
Expand description

Options which can be used to configure how a worktree is initialized

Implementations

Creates a default set of add options.

By default this will not lock the worktree

If enabled, this will cause the newly added worktree to be locked

reference to use for the new worktree HEAD

Get a set of raw add options to be used with git_worktree_add

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.