diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 13:47:13 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 13:47:13 +0100 |
| commit | 99b68a2aecfaa24f252f265d61b230b8e2576dd2 (patch) | |
| tree | e54ed236c68b3d3cab3882634a0e6fb54f988617 /include/git2/clone.h | |
| parent | 31bc6c044091c4d65f3a6fd7078beb260c210137 (diff) | |
| parent | 496b76d415b080712d7648fc6f1ff2e55d27a6a5 (diff) | |
| download | libgit2-99b68a2aecfaa24f252f265d61b230b8e2576dd2.tar.gz | |
Merge pull request #2908 from ethomson/safe_create
Allow checkout to handle newly cloned repositories, remove `GIT_CHECKOUT_SAFE_CREATE`
Diffstat (limited to 'include/git2/clone.h')
| -rw-r--r-- | include/git2/clone.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h index 464408534..1cee516a1 100644 --- a/include/git2/clone.h +++ b/include/git2/clone.h @@ -106,9 +106,7 @@ typedef struct git_clone_options { /** * These options are passed to the checkout step. To disable * checkout, set the `checkout_strategy` to - * `GIT_CHECKOUT_NONE`. Generally you will want the use - * GIT_CHECKOUT_SAFE_CREATE to create all files in the working - * directory for the newly cloned repository. + * `GIT_CHECKOUT_NONE`. */ git_checkout_options checkout_opts; @@ -173,7 +171,9 @@ typedef struct git_clone_options { } git_clone_options; #define GIT_CLONE_OPTIONS_VERSION 1 -#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTIONS_VERSION, GIT_CHECKOUT_SAFE_CREATE}, GIT_REMOTE_CALLBACKS_INIT} +#define GIT_CLONE_OPTIONS_INIT { GIT_CLONE_OPTIONS_VERSION, \ + { GIT_CHECKOUT_OPTIONS_VERSION, GIT_CHECKOUT_SAFE }, \ + GIT_REMOTE_CALLBACKS_INIT } /** * Initializes a `git_clone_options` with default values. Equivalent to |
