summaryrefslogtreecommitdiff
path: root/src/checkout.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-10-02 05:56:37 -0700
committerVicent Martí <vicent@github.com>2013-10-02 05:56:37 -0700
commit5bfead1dba919f6b47f52da675ea94407e8baf49 (patch)
tree4b879238df61eccc2f048fe51e10fce421967e26 /src/checkout.c
parent71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff)
parent0e0cf78773bea0d06298ba3bf981a3be839041df (diff)
downloadlibgit2-5bfead1dba919f6b47f52da675ea94407e8baf49.tar.gz
Merge pull request #1855 from libgit2/cmn/clone-into
An alternative for 'clone' with options
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 0e9d11bff..5d741d393 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -1119,7 +1119,7 @@ static void checkout_data_clear(checkout_data *data)
static int checkout_data_init(
checkout_data *data,
git_iterator *target,
- git_checkout_opts *proposed)
+ const git_checkout_opts *proposed)
{
int error = 0;
git_repository *repo = git_iterator_owner(target);
@@ -1229,7 +1229,7 @@ cleanup:
int git_checkout_iterator(
git_iterator *target,
- git_checkout_opts *opts)
+ const git_checkout_opts *opts)
{
int error = 0;
git_iterator *baseline = NULL, *workdir = NULL;
@@ -1404,7 +1404,7 @@ int git_checkout_tree(
int git_checkout_head(
git_repository *repo,
- git_checkout_opts *opts)
+ const git_checkout_opts *opts)
{
int error;
git_tree *head = NULL;