Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Cunz <sascha@babbelbox.org>2013-11-02 07:20:05 +0400
committerSascha Cunz <sascha@babbelbox.org>2013-11-02 07:20:05 +0400
commit10749f6ca25179778cf60e411f7de3de1444271d (patch)
treebc57b1eaa25c8057b29f0ac907e1fbbcc86e3ab3 /src/checkout.c
parent7f13edfdbbff733ecbde4020de00e3bfa8e5a868 (diff)
Checkout: Unifiy const-ness of `opts` parameter
Since all 3 checkout APIs perform the same operation with the options, all of them should use the same const-ness.
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 76edc6a72..20b964b54 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -2018,7 +2018,7 @@ cleanup:
int git_checkout_index(
git_repository *repo,
git_index *index,
- git_checkout_opts *opts)
+ const git_checkout_opts *opts)
{
int error;
git_iterator *index_i;
@@ -2053,7 +2053,7 @@ int git_checkout_index(
int git_checkout_tree(
git_repository *repo,
const git_object *treeish,
- git_checkout_opts *opts)
+ const git_checkout_opts *opts)
{
int error;
git_tree *tree = NULL;