diff options
| author | Patrick Steinhardt <ps@pks.im> | 2017-07-10 08:50:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-10 08:50:11 +0200 |
| commit | c4c95bf42985182fde34f3ccf09c53f4b3f00063 (patch) | |
| tree | 0b3362ddc692ac2a21bc52c267f27a400d722ae6 /include | |
| parent | 0e165686d97264c2d7bc6b0317cf953581cbf695 (diff) | |
| parent | d4e03be61317bc67c621283902c8428c28aecc81 (diff) | |
| download | libgit2-c4c95bf42985182fde34f3ccf09c53f4b3f00063.tar.gz | |
Merge pull request #4287 from AndreyG/reset/interface-cosmetics
git_reset_*: pass parameters as const pointers
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/reset.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/reset.h b/include/git2/reset.h index bd29c69e4..be2541433 100644 --- a/include/git2/reset.h +++ b/include/git2/reset.h @@ -61,7 +61,7 @@ typedef enum { */ GIT_EXTERN(int) git_reset( git_repository *repo, - git_object *target, + const git_object *target, git_reset_t reset_type, const git_checkout_options *checkout_opts); @@ -79,7 +79,7 @@ GIT_EXTERN(int) git_reset( */ GIT_EXTERN(int) git_reset_from_annotated( git_repository *repo, - git_annotated_commit *commit, + const git_annotated_commit *commit, git_reset_t reset_type, const git_checkout_options *checkout_opts); @@ -103,8 +103,8 @@ GIT_EXTERN(int) git_reset_from_annotated( */ GIT_EXTERN(int) git_reset_default( git_repository *repo, - git_object *target, - git_strarray* pathspecs); + const git_object *target, + const git_strarray* pathspecs); /** @} */ GIT_END_DECL |
