libgit2

git_worktree_prune

Version:

Prune working tree

Prune the working tree, that is remove the git data structures on disk. The repository will only be pruned of git_worktree_is_prunable succeeds.

Signature

int git_worktree_prune(git_worktree *wt, git_worktree_prune_options *opts);

Parameters

In
wt

Worktree to prune

In
opts

Specifies which checks to override. See git_worktree_is_prunable. May be NULL

Returns

int

0 or an error code

Versions