diff options
| author | Justin Tobler <jltobler@gmail.com> | 2025-10-21 13:25:55 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-21 14:40:37 -0700 |
| commit | 026ad6016070748a66ed9a977ad90efc08df2225 (patch) | |
| tree | ce1504221824e4f494f7f770b91716f82339c8f0 | |
| parent | bb69721404348ea2db0a081c41ab6ebfe75bdec8 (diff) | |
| download | git-026ad6016070748a66ed9a977ad90efc08df2225.tar.gz | |
builtin/repo: rename repo_info() to cmd_repo_info()
Subcommand functions are often prefixed with `cmd_` to denote that they
are an entrypoint. Rename repo_info() to cmd_repo_info() accordingly.
Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | builtin/repo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/repo.c b/builtin/repo.c index bbb0966f2d..eeeab8fbd2 100644 --- a/builtin/repo.c +++ b/builtin/repo.c @@ -136,8 +136,8 @@ static int parse_format_cb(const struct option *opt, return 0; } -static int repo_info(int argc, const char **argv, const char *prefix, - struct repository *repo) +static int cmd_repo_info(int argc, const char **argv, const char *prefix, + struct repository *repo) { enum output_format format = FORMAT_KEYVALUE; struct option options[] = { @@ -161,7 +161,7 @@ int cmd_repo(int argc, const char **argv, const char *prefix, { parse_opt_subcommand_fn *fn = NULL; struct option options[] = { - OPT_SUBCOMMAND("info", &fn, repo_info), + OPT_SUBCOMMAND("info", &fn, cmd_repo_info), OPT_END() }; |
