File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,8 @@ typedef enum {
190
190
/** Recursively checkout submodules if HEAD moved in super repo (NOT IMPLEMENTED) */
191
191
GIT_CHECKOUT_UPDATE_SUBMODULES_IF_CHANGED = (1u << 17 ),
192
192
193
- /**
194
- * Do not do a checkout and do not fire callbacks; this is useful
195
- * for internal functions that will perform the checkout themselves
196
- * but need to pass checkout options into another function, for
197
- * example, `git_clone`.
198
- */
199
- GIT_CHECKOUT_NONE = (1u << 30 )
193
+ /** Reserved for backward compatibility */
194
+ GIT_CHECKOUT_RESERVED = (1u << 30 )
200
195
} git_checkout_strategy_t ;
201
196
202
197
/**
Original file line number Diff line number Diff line change @@ -260,6 +260,21 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
260
260
261
261
/**@}*/
262
262
263
+ /** @name Deprecated Checkout Definitions */
264
+ /**@{*/
265
+
266
+ /**
267
+ * Do not do a checkout and do not fire callbacks; this is useful
268
+ * for internal functions that will perform the checkout themselves
269
+ * but need to pass checkout options into another function, for
270
+ * example, `git_clone`.
271
+ *
272
+ * @deprecated Users should use `GIT_CHECKOUT_DRY_RUN`
273
+ */
274
+ #define GIT_CHECKOUT_NONE (1u << 30)
275
+
276
+ /**@}*/
277
+
263
278
/** @name Deprecated Commit Definitions
264
279
*/
265
280
/**@{*/
Original file line number Diff line number Diff line change @@ -583,8 +583,10 @@ static int clone_repo(
583
583
options .fetch_opts .download_tags = GIT_REMOTE_DOWNLOAD_TAGS_ALL ;
584
584
585
585
/* Backward compatibility: support the deprecated GIT_CHECKOUT_NONE */
586
+ #ifndef GIT_DEPRECATE_HARD
586
587
if (options .checkout_opts .checkout_strategy == GIT_CHECKOUT_NONE )
587
588
options .no_checkout = 1 ;
589
+ #endif
588
590
589
591
/* Only clone to a new directory or an empty directory */
590
592
if (git_fs_path_exists (local_path ) && !use_existing && !git_fs_path_is_empty_dir (local_path )) {
You can’t perform that action at this time.
0 commit comments