Skip to content

Commit 026ad60

Browse files
jltoblergitster
authored andcommitted
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>
1 parent bb69721 commit 026ad60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/repo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ static int parse_format_cb(const struct option *opt,
136136
return 0;
137137
}
138138

139-
static int repo_info(int argc, const char **argv, const char *prefix,
140-
struct repository *repo)
139+
static int cmd_repo_info(int argc, const char **argv, const char *prefix,
140+
struct repository *repo)
141141
{
142142
enum output_format format = FORMAT_KEYVALUE;
143143
struct option options[] = {
@@ -161,7 +161,7 @@ int cmd_repo(int argc, const char **argv, const char *prefix,
161161
{
162162
parse_opt_subcommand_fn *fn = NULL;
163163
struct option options[] = {
164-
OPT_SUBCOMMAND("info", &fn, repo_info),
164+
OPT_SUBCOMMAND("info", &fn, cmd_repo_info),
165165
OPT_END()
166166
};
167167

0 commit comments

Comments
 (0)