Skip to content

Commit 15fe88d

Browse files
tfidfwastakengitster
authored andcommitted
submodule--helper: remove resolve-relative-url subcommand
The shell subcommand `resolve-relative-url` is no longer required, as its last caller has been removed when it was converted to C. Signed-off-by: Atharva Raykar <[email protected]> Mentored-by: Christian Couder <[email protected]> Mentored-by: Shourya Shukla <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ba8a3b0 commit 15fe88d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

builtin/submodule--helper.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,6 @@ static char *compute_submodule_clone_url(const char *rel_url, const char *up_pat
223223
return resolved_url;
224224
}
225225

226-
static int resolve_relative_url(int argc, const char **argv, const char *prefix)
227-
{
228-
const char *up_path = NULL;
229-
char *res;
230-
const char *url;
231-
232-
if (argc != 2 && argc != 3)
233-
die("resolve-relative-url only accepts one or two arguments");
234-
235-
url = argv[1];
236-
if (argc == 3)
237-
up_path = argv[2];
238-
239-
res = compute_submodule_clone_url(url, up_path, 1);
240-
puts(res);
241-
free(res);
242-
return 0;
243-
}
244-
245226
static int resolve_relative_url_test(int argc, const char **argv, const char *prefix)
246227
{
247228
char *remoteurl, *res;
@@ -3119,7 +3100,6 @@ static struct cmd_struct commands[] = {
31193100
{"update-clone", update_clone, 0},
31203101
{"ensure-core-worktree", ensure_core_worktree, 0},
31213102
{"relative-path", resolve_relative_path, 0},
3122-
{"resolve-relative-url", resolve_relative_url, 0},
31233103
{"resolve-relative-url-test", resolve_relative_url_test, 0},
31243104
{"foreach", module_foreach, SUPPORT_SUPER_PREFIX},
31253105
{"init", module_init, SUPPORT_SUPER_PREFIX},

0 commit comments

Comments
 (0)