diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-28 10:32:03 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-29 08:18:30 -0500 |
commit | 7099ba353ed5faef37f44c9edf57e5c76a9902f1 (patch) | |
tree | 24bb6eb568513a0489076d880571b9788ce642b2 /src/cli/main.c | |
parent | 6902b9da29e6ac06bc72a653e3eb82ea7069a12c (diff) | |
download | libgit2-ethomson/cmake5.tar.gz |
cli: add `cat-file` commandethomson/cmake5
Introduce a simple command that emulates `git cat-file`.
Diffstat (limited to 'src/cli/main.c')
-rw-r--r-- | src/cli/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/main.c b/src/cli/main.c index 690ef74f1..84491effe 100644 --- a/src/cli/main.c +++ b/src/cli/main.c @@ -24,7 +24,8 @@ const cli_opt_spec cli_common_opts[] = { }; const cli_cmd_spec cli_cmds[] = { - { "help", cmd_help, "Display help information" }, + { "cat-file", cmd_cat_file, "Display an object in the repository" }, + { "help", cmd_help, "Display help information" }, { NULL } }; |