Commit 10749f6c by Sascha Cunz

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.
parent 7f13edfd
...@@ -272,7 +272,7 @@ GIT_EXTERN(int) git_checkout_head( ...@@ -272,7 +272,7 @@ GIT_EXTERN(int) git_checkout_head(
GIT_EXTERN(int) git_checkout_index( GIT_EXTERN(int) git_checkout_index(
git_repository *repo, git_repository *repo,
git_index *index, git_index *index,
git_checkout_opts *opts); const git_checkout_opts *opts);
/** /**
* Updates files in the index and working tree to match the content of the * Updates files in the index and working tree to match the content of the
...@@ -288,7 +288,7 @@ GIT_EXTERN(int) git_checkout_index( ...@@ -288,7 +288,7 @@ GIT_EXTERN(int) git_checkout_index(
GIT_EXTERN(int) git_checkout_tree( GIT_EXTERN(int) git_checkout_tree(
git_repository *repo, git_repository *repo,
const git_object *treeish, const git_object *treeish,
git_checkout_opts *opts); const git_checkout_opts *opts);
/** @} */ /** @} */
GIT_END_DECL GIT_END_DECL
......
...@@ -2018,7 +2018,7 @@ cleanup: ...@@ -2018,7 +2018,7 @@ cleanup:
int git_checkout_index( int git_checkout_index(
git_repository *repo, git_repository *repo,
git_index *index, git_index *index,
git_checkout_opts *opts) const git_checkout_opts *opts)
{ {
int error; int error;
git_iterator *index_i; git_iterator *index_i;
...@@ -2053,7 +2053,7 @@ int git_checkout_index( ...@@ -2053,7 +2053,7 @@ int git_checkout_index(
int git_checkout_tree( int git_checkout_tree(
git_repository *repo, git_repository *repo,
const git_object *treeish, const git_object *treeish,
git_checkout_opts *opts) const git_checkout_opts *opts)
{ {
int error; int error;
git_tree *tree = NULL; git_tree *tree = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment