libgit2

git_worktree_add_options

Version:

Worktree add options structure

Initialize with GIT_WORKTREE_ADD_OPTIONS_INIT. Alternatively, you can use git_worktree_add_options_init.

Signature

typedef struct git_worktree_add_options { unsigned int version int lock git_reference *ref git_checkout_options checkout_options };

Members

unsigned int
version
int
lock

lock newly created worktree

ref

reference to use for the new worktree HEAD

checkout_options

Options for the checkout.

Parameter To

Versions