diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:42 -0700 |
commit | b5a36278f4f3219c1158c7891ba25fe29f5eebf7 (patch) | |
tree | 625c2f1198ef2cdfe8b21604b8375a9bb742cb6d /submodule.c | |
parent | 67fc02be54bc8f5e8abf381456f297e32440b88a (diff) | |
parent | a452128a36cb73f5366c23eabe93c7edfa227866 (diff) | |
download | git-b5a36278f4f3219c1158c7891ba25fe29f5eebf7.tar.gz |
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.c | 5 |
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; |