Re: [PATCH v2 07/10] submodule--helper: convert "{update,clone}" to their own "--super-prefix"
- From
Glen Choo <chooglen@google.com>
- Date
- Nov 14, 2022, 22:04 UTC
- Message-ID
- <kl6l1qq5p4zy.fsf@chooglen-macbookpro.roam.corp.google.com>
- In-Reply-To
- <patch-v2-07.10-eaa73f5b1e4-20221114T100803Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 15 quoted lines
> diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
> index 40939b0b18e..e13615eb939 100644
> --- a/builtin/submodule--helper.c
> +++ b/builtin/submodule--helper.c
> @@ -131,13 +131,6 @@ static char *get_submodule_displaypath_sp(const char *path, const char *prefix,
> }
> }
>
> -static char *get_submodule_displaypath(const char *path, const char *prefix)
> -{
> - const char *super_prefix = get_super_prefix();
> -
> - return get_submodule_displaypath_sp(path, prefix, super_prefix);
> -}
> -It feels a bit odd that the function we keep is the one with _sp, especially since the "original" is gone. FWIW, I wouldn't mind if we just changed the signature of get_submodule_displaypath() instead of introducing the _sp helper.