git_worktree_prune

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.

extern (C) nothrow @nogc
int
git_worktree_prune

Parameters

wt libgit2_d.types.git_worktree*

Worktree to prune

opts .git_worktree_prune_options*

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

Return Value

Type: int

0 or an error code

Meta