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>seen
parent
bb69721404
commit
9cd5c5d785
|
@ -136,8 +136,8 @@ static int parse_format_cb(const struct option *opt,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int repo_info(int argc, const char **argv, const char *prefix,
|
static int cmd_repo_info(int argc, const char **argv, const char *prefix,
|
||||||
struct repository *repo)
|
struct repository *repo)
|
||||||
{
|
{
|
||||||
enum output_format format = FORMAT_KEYVALUE;
|
enum output_format format = FORMAT_KEYVALUE;
|
||||||
struct option options[] = {
|
struct option options[] = {
|
||||||
|
@ -161,7 +161,7 @@ int cmd_repo(int argc, const char **argv, const char *prefix,
|
||||||
{
|
{
|
||||||
parse_opt_subcommand_fn *fn = NULL;
|
parse_opt_subcommand_fn *fn = NULL;
|
||||||
struct option options[] = {
|
struct option options[] = {
|
||||||
OPT_SUBCOMMAND("info", &fn, repo_info),
|
OPT_SUBCOMMAND("info", &fn, cmd_repo_info),
|
||||||
OPT_END()
|
OPT_END()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue