Is the worktree prunable with the given options?
A worktree is not prunable in the following scenarios:
valid
member will cause this check to be ignored.locked
flag will cause this
check to be ignored.If the worktree is not valid and not locked or if the above
flags have been passed in, this function will return a
positive value. If the worktree is not prunable, an error
message will be set (visible in giterr_last
) with details about
why.
1 if the worktree is prunable, 0 otherwise, or an error code.