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

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-21 01:20:42 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-21 01:20:42 +0300
commitb5a36278f4f3219c1158c7891ba25fe29f5eebf7 (patch)
tree625c2f1198ef2cdfe8b21604b8375a9bb742cb6d /submodule.c
parent67fc02be54bc8f5e8abf381456f297e32440b88a (diff)
parenta452128a36cb73f5366c23eabe93c7edfa227866 (diff)
Merge branch 'ar/submodule-add-config'
Large part of "git submodule add" gets rewritten in C. * ar/submodule-add-config: submodule--helper: introduce add-config subcommand
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/submodule.c b/submodule.c
index 5e63e91caf..85ea1c36dd 100644
--- a/submodule.c
+++ b/submodule.c
@@ -260,6 +260,11 @@ int option_parse_recurse_submodules_worktree_updater(const struct option *opt,
/*
* Determine if a submodule has been initialized at a given 'path'
*/
+/*
+ * NEEDSWORK: Emit a warning if submodule.active exists, but is valueless,
+ * ie, the config looks like: "[submodule] active\n".
+ * Since that is an invalid pathspec, we should inform the user.
+ */
int is_submodule_active(struct repository *repo, const char *path)
{
int ret = 0;