Struct git2::WorktreeAddOptions [−][src]
pub struct WorktreeAddOptions<'a> { /* fields omitted */ }
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
pub fn reference(
&mut self,
reference: Option<&'a Reference<'_>>
) -> &mut WorktreeAddOptions<'a>
pub fn reference(
&mut self,
reference: Option<&'a Reference<'_>>
) -> &mut WorktreeAddOptions<'a>
reference to use for the new worktree HEAD
Get a set of raw add options to be used with git_worktree_add