diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-20 22:49:20 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 06:42:26 +0200 |
commit | eec1c1fe1e9a12b57c4014be25ce4ed390c8e199 (patch) | |
tree | 8d033d331a8d705eab805336d37192946c1cc6bc /src/checkout.c | |
parent | b9bf5d701dd6dfcfcb41d2655f59f7669cd50ef9 (diff) | |
download | libgit2-eec1c1fe1e9a12b57c4014be25ce4ed390c8e199.tar.gz |
clone: const-ify checkout options
The removal of many options which lead to the direct usage of the
user's checkout options means we should make sure they remain const.
Diffstat (limited to 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 6 |
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; |