diff options
author | Sascha Cunz <sascha@babbelbox.org> | 2013-01-11 02:45:55 +0100 |
---|---|---|
committer | Sascha Cunz <sascha@babbelbox.org> | 2013-01-11 03:10:19 +0100 |
commit | 88aef76635c012ac8dc770e0f97abc37980decf9 (patch) | |
tree | 311690a7160deced5bd631f726201f6917453c74 /include/git2/clone.h | |
parent | 132c2db6a9f839d7697e8bff05861a92825a9c7c (diff) | |
download | libgit2-88aef76635c012ac8dc770e0f97abc37980decf9.tar.gz |
Implement analog for 'git checkout --branch xxx ...'
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r-- | include/git2/clone.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h index e299c155d..9bb92ebdd 100644 --- a/include/git2/clone.h +++ b/include/git2/clone.h @@ -57,6 +57,8 @@ GIT_BEGIN_DECL * the origin remote before the fetch is initiated. * - `remote_autotag` may be used to specify the autotag setting before the * initial fetch. + * - `checkout_branch` gives the name of the branch to checkout. NULL means + * use the remote's HEAD. */ typedef struct git_clone_options { @@ -76,6 +78,7 @@ typedef struct git_clone_options { git_transport *transport; git_remote_callbacks *remote_callbacks; git_remote_autotag_option_t remote_autotag; + const char* checkout_branch; } git_clone_options; #define GIT_CLONE_OPTIONS_VERSION 1 |