libgit2

git_worktree_prune_init_options

Version:

Initializes a git_worktree_prune_options with default vaules. Equivalent to creating an instance with GIT_WORKTREE_PRUNE_OPTIONS_INIT.

Signature

int git_worktree_prune_init_options(git_worktree_prune_options *opts, unsigned int version);

Parameters

In
opts

the struct to initialize

unsigned int
In
version

Verison of struct; pass GIT_WORKTREE_PRUNE_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions