@@ -31,6 +31,7 @@ function git_worktree_lookup(out_: PPgit_worktree; repo: Pgit_repository; name_:
31
31
*
32
32
* @param out Out-pointer for the newly allocated worktree
33
33
* @param repo Repository to look up worktree for
34
+ * @return 0 or an error code
34
35
*)
35
36
36
37
function git_worktree_open_from_repository (out_: PPgit_worktree;
70
71
version: Cardinal;
71
72
lock: Integer; (* *< lock newly created worktree *)
72
73
ref: Pgit_reference; (* *< reference to use for the new worktree HEAD *)
74
+ (* *
75
+ * Options for the checkout.
76
+ *)
77
+ checkout_options: git_checkout_options;
73
78
end ;
74
79
Pgit_worktree_add_options = ^git_worktree_add_options;
75
80
76
81
const
77
82
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}
79
84
(* *
80
85
* Initialize git_worktree_add_options structure
81
86
*
@@ -224,6 +229,10 @@ function git_worktree_prune_options_init(opts: Pgit_worktree_prune_options; vers
224
229
* If the worktree is not valid and not locked or if the above
225
230
* flags have been passed in, this function will return a
226
231
* 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.
227
236
*)
228
237
function git_worktree_is_prunable (wt: Pgit_worktree; opts: Pgit_worktree_prune_options): Integer; cdecl; external libgit2_dll;
229
238
@@ -243,6 +252,3 @@ function git_worktree_is_prunable(wt: Pgit_worktree; opts: Pgit_worktree_prune_o
243
252
function git_worktree_prune (wt: Pgit_worktree; opts: Pgit_worktree_prune_options): Integer; cdecl; external libgit2_dll;
244
253
245
254
(* * @} *)
246
-
247
-
248
-
0 commit comments