Merge branch 'ar/submodule-add-config' into ar/submodule-add

* ar/submodule-add-config:
  submodule--helper: introduce add-config subcommand
This commit is contained in:
Junio C Hamano
2021-08-10 11:01:19 -07:00
3 changed files with 135 additions and 27 deletions

View File

@ -237,6 +237,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;