diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-26 23:16:39 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-26 23:16:39 -0500 |
| commit | 935637101c181bfb510720a016de83b40cf7f0d5 (patch) | |
| tree | c31b05bf1f294a80093a374ad12f38f9998e0b9c | |
| parent | cf7def1477822d6555bd50e72d22ce9581e41a30 (diff) | |
| download | libgit2-935637101c181bfb510720a016de83b40cf7f0d5.tar.gz | |
cli: add checkout branch to clone
| -rw-r--r-- | src/cli/cmd_clone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli/cmd_clone.c b/src/cli/cmd_clone.c index 34eedfe87..0f199288b 100644 --- a/src/cli/cmd_clone.c +++ b/src/cli/cmd_clone.c @@ -34,6 +34,8 @@ static const cli_opt_spec opts[] = { CLI_OPT_USAGE_DEFAULT, NULL, "do not display progress output" }, { CLI_OPT_TYPE_BOOL, "bare", 0, &clone_opts.bare, 1, CLI_OPT_USAGE_DEFAULT, NULL, "don't create a working directory" }, + { CLI_OPT_TYPE_VALUE, "branch", 'b', &clone_opts.checkout_branch, 0, + CLI_OPT_USAGE_DEFAULT, "branch", "branch to checkout" }, { CLI_OPT_TYPE_LITERAL }, { CLI_OPT_TYPE_ARG, "repository", 0, &remote_path, 0, |
