Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-05 10:01:20 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-22 18:02:55 +0300
commit4e63642321bbea96b6a06ac28ac3c3e447f15df3 (patch)
treed5289a284d0ca04a3ae45b6b0b1f30b00f0b675f /include
parente8a39f8ed1a95b96415c719c826f0e5715432393 (diff)
submodule: make `_set_update_fetch_recurse_submodules()` affect the config
Similarly to the other ones. In this test we copy over testing `RECURSE_YES` which shows an error in our handling of the `YES` variant which we may have to port to the rest.
Diffstat (limited to 'include')
-rw-r--r--include/git2/submodule.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index d36884a3c..63572150d 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -519,18 +519,18 @@ GIT_EXTERN(git_submodule_recurse_t) git_submodule_fetch_recurse_submodules(
git_submodule *submodule);
/**
- * Set the fetchRecurseSubmodules rule for a submodule.
+ * Set the fetchRecurseSubmodules rule for a submodule in the configuration
*
- * This sets the submodule.<name>.fetchRecurseSubmodules value for
- * the submodule. You should call `git_submodule_save()` if you want
- * to persist the new value.
+ * This setting won't affect any existing instances.
*
- * @param submodule The submodule to modify
+ * @param repo the repository to affect
+ * @param name the submodule to configure
* @param fetch_recurse_submodules Boolean value
* @return old value for fetchRecurseSubmodules
*/
-GIT_EXTERN(git_submodule_recurse_t) git_submodule_set_fetch_recurse_submodules(
- git_submodule *submodule,
+GIT_EXTERN(int) git_submodule_set_fetch_recurse_submodules(
+ git_repository *repo,
+ const char *name,
git_submodule_recurse_t fetch_recurse_submodules);
/**