mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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.
This commit is contained in:
@@ -237,7 +237,9 @@ GIT_EXTERN(int) git_worktree_prune_options_init(
|
||||
*
|
||||
* 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.
|
||||
* positive value. If the worktree is not prunable, an error
|
||||
* message will be set (visible in `giterr_last`) with details about
|
||||
* why.
|
||||
*
|
||||
* @param wt Worktree to check.
|
||||
* @param opts The prunable options.
|
||||
|
||||
Reference in New Issue
Block a user