diff options
author | Andrey Davydov <andrey.a.davydov@gmail.com> | 2017-06-30 11:21:18 +0300 |
---|---|---|
committer | Andrey Davydov <andrey.a.davydov@gmail.com> | 2017-06-30 11:31:04 +0300 |
commit | d4e03be61317bc67c621283902c8428c28aecc81 (patch) | |
tree | 2bf76a8050933bf7070ed9cfebe27950a38c99f5 /src/reset.c | |
parent | c26ce78404b7fc7356c56bd2c57611fd60a3705b (diff) | |
download | libgit2-d4e03be61317bc67c621283902c8428c28aecc81.tar.gz |
git_reset_*: pass parameters as const pointers
Diffstat (limited to 'src/reset.c')
-rw-r--r-- | src/reset.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reset.c b/src/reset.c index 066b5dbda..eb4cc3974 100644 --- a/src/reset.c +++ b/src/reset.c @@ -20,8 +20,8 @@ int git_reset_default( git_repository *repo, - git_object *target, - git_strarray* pathspecs) + const git_object *target, + const git_strarray* pathspecs) { git_object *commit = NULL; git_tree *tree = NULL; @@ -100,7 +100,7 @@ cleanup: static int reset( git_repository *repo, - git_object *target, + const git_object *target, const char *to, git_reset_t reset_type, const git_checkout_options *checkout_opts) @@ -182,7 +182,7 @@ cleanup: int git_reset( git_repository *repo, - git_object *target, + const git_object *target, git_reset_t reset_type, const git_checkout_options *checkout_opts) { @@ -191,7 +191,7 @@ int git_reset( 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) { |