From: Glen Choo Date: Mon, 14 Nov 2022 22:04:33 GMT Subject: Re: [PATCH v2 07/10] submodule--helper: convert "{update,clone}" to their own "--super-prefix" Message-ID: In-Reply-To: Ævar Arnfjörð Bjarmason writes: > 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.