summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorJosh Leeb-du Toit <josh.leebdutoit@gmail.com>2016-09-26 19:32:15 +1000
committerJosh Leeb-du Toit <josh.leebdutoit@gmail.com>2016-10-10 09:50:24 +1100
commit567fd782d92e0e55724e93931faf28005d71904e (patch)
treed9c5f5c959e43941b1cfa73505601d7c68e551f4 /include/git2
parent610cff13a31964eeb2264a452424e1e3d49accc3 (diff)
downloadlibgit2-567fd782d92e0e55724e93931faf28005d71904e.tar.gz
Remove `clone_checkout_strategy` in submodule update opts
Remove `clone_checkout_strategy` in `git_submodule_update_options` as per issue #3784.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/submodule.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index 540ecf5c7..ab5d7b6f5 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -134,9 +134,7 @@ typedef struct git_submodule_update_options {
* checkout, set the `checkout_strategy` to
* `GIT_CHECKOUT_NONE`. Generally you will want the use
* GIT_CHECKOUT_SAFE to update files in the working
- * directory. Use the `clone_checkout_strategy` field
- * to set the checkout strategy that will be used in
- * the case where update needs to clone the repository.
+ * directory.
*/
git_checkout_options checkout_opts;
@@ -149,13 +147,6 @@ typedef struct git_submodule_update_options {
git_fetch_options fetch_opts;
/**
- * The checkout strategy to use when the sub repository needs to
- * be cloned. Use GIT_CHECKOUT_SAFE to create all files
- * in the working directory for the newly cloned repository.
- */
- unsigned int clone_checkout_strategy;
-
- /**
* Allow fetching from the submodule's default remote if the target
* commit isn't found. Enabled by default.
*/
@@ -166,7 +157,7 @@ typedef struct git_submodule_update_options {
#define GIT_SUBMODULE_UPDATE_OPTIONS_INIT \
{ GIT_SUBMODULE_UPDATE_OPTIONS_VERSION, \
{ GIT_CHECKOUT_OPTIONS_VERSION, GIT_CHECKOUT_SAFE }, \
- GIT_FETCH_OPTIONS_INIT, GIT_CHECKOUT_SAFE, 1 }
+ GIT_FETCH_OPTIONS_INIT, GIT_CHECKOUT_SAFE }
/**
* Initializes a `git_submodule_update_options` with default values.