Skip to content

Commit 12b54ae

Browse files
committed
worktree: document that is_prunable sets error messages
When a worktree is not prunable, an error message will be set with information about why. Document that.
1 parent 3721432 commit 12b54ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/git2/worktree.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ GIT_EXTERN(int) git_worktree_prune_options_init(
237237
*
238238
* If the worktree is not valid and not locked or if the above
239239
* flags have been passed in, this function will return a
240-
* positive value.
240+
* positive value. If the worktree is not prunable, an error
241+
* message will be set (visible in `giterr_last`) with details about
242+
* why.
241243
*
242244
* @param wt Worktree to check.
243245
* @param opts The prunable options.

0 commit comments

Comments
 (0)