@@ -31,6 +31,7 @@ function git_worktree_lookup(out_: PPgit_worktree; repo: Pgit_repository; name_:
3131 *
3232 * @param out Out-pointer for the newly allocated worktree
3333 * @param repo Repository to look up worktree for
34+ * @return 0 or an error code
3435 *)
3536
3637function git_worktree_open_from_repository (out_: PPgit_worktree;
7071 version: Cardinal;
7172 lock: Integer; (* *< lock newly created worktree *)
7273 ref: Pgit_reference; (* *< reference to use for the new worktree HEAD *)
74+ (* *
75+ * Options for the checkout.
76+ *)
77+ checkout_options: git_checkout_options;
7378 end ;
7479 Pgit_worktree_add_options = ^git_worktree_add_options;
7580
7681const
7782 GIT_WORKTREE_ADD_OPTIONS_VERSION = 1 ;
78- // GIT_WORKTREE_ADD_OPTIONS_INIT = { GIT_WORKTREE_ADD_OPTIONS_VERSION , 0 , NULL };
83+ // GIT_WORKTREE_ADD_OPTIONS_INIT { GIT_WORKTREE_ADD_OPTIONS_VERSION,0, NULL,GIT_CHECKOUT_OPTIONS_INIT}
7984 (* *
8085 * Initialize git_worktree_add_options structure
8186 *
@@ -224,6 +229,10 @@ function git_worktree_prune_options_init(opts: Pgit_worktree_prune_options; vers
224229 * If the worktree is not valid and not locked or if the above
225230 * flags have been passed in, this function will return a
226231 * positive value.
232+ *
233+ * @param wt Worktree to check.
234+ * @param opts The prunable options.
235+ * @return 1 if the worktree is prunable, 0 otherwise, or an error code.
227236 *)
228237function git_worktree_is_prunable (wt: Pgit_worktree; opts: Pgit_worktree_prune_options): Integer; cdecl; external libgit2_dll;
229238
@@ -243,6 +252,3 @@ function git_worktree_is_prunable(wt: Pgit_worktree; opts: Pgit_worktree_prune_o
243252function git_worktree_prune (wt: Pgit_worktree; opts: Pgit_worktree_prune_options): Integer; cdecl; external libgit2_dll;
244253
245254(* * @} *)
246-
247-
248-
0 commit comments