diff options
Diffstat (limited to 'include/git2/worktree.h')
| -rw-r--r-- | include/git2/worktree.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/git2/worktree.h b/include/git2/worktree.h index fa4b57802..d1b4f84c2 100644 --- a/include/git2/worktree.h +++ b/include/git2/worktree.h @@ -77,10 +77,9 @@ GIT_EXTERN(int) git_worktree_validate(const git_worktree *wt); /** * Worktree add options structure * - * Zero out for defaults. Initialize with `GIT_WORKTREE_ADD_OPTIONS_INIT` - * macro to correctly set the `version` field. E.g. + * Initialize with `GIT_WORKTREE_ADD_OPTIONS_INIT`. Alternatively, you can + * use `git_worktree_add_init_options`. * - * git_worktree_add_options opts = GIT_WORKTREE_ADD_OPTIONS_INIT; */ typedef struct git_worktree_add_options { unsigned int version; @@ -192,10 +191,9 @@ typedef enum { /** * Worktree prune options structure * - * Zero out for defaults. Initialize with `GIT_WORKTREE_PRUNE_OPTIONS_INIT` - * macro to correctly set the `version` field. E.g. + * Initialize with `GIT_WORKTREE_PRUNE_OPTIONS_INIT`. Alternatively, you can + * use `git_worktree_prune_init_options`. * - * git_worktree_prune_options opts = GIT_WORKTREE_PRUNE_OPTIONS_INIT; */ typedef struct git_worktree_prune_options { unsigned int version; |
