diff options
Diffstat (limited to 'builtin/repo.c')
-rw-r--r-- | builtin/repo.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/builtin/repo.c b/builtin/repo.c new file mode 100644 index 0000000000..fd2a9b4216 --- /dev/null +++ b/builtin/repo.c @@ -0,0 +1,27 @@ +#include "builtin.h" +#include "parse-options.h" + +static const char *const repo_usage[] = { + "git repo info [<key>...]", + NULL +}; + +static int repo_info(int argc UNUSED, const char **argv UNUSED, + const char *prefix UNUSED, struct repository *repo UNUSED) +{ + return 0; +} + +int cmd_repo(int argc, const char **argv, const char *prefix, + struct repository *repo) +{ + parse_opt_subcommand_fn *fn = NULL; + struct option options[] = { + OPT_SUBCOMMAND("info", &fn, repo_info), + OPT_END() + }; + + argc = parse_options(argc, argv, prefix, options, repo_usage, 0); + + return fn(argc, argv, prefix, repo); +} |