diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-10 12:44:51 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-04-11 21:55:36 +0200 |
commit | 7a28f268adc1d2569ce504147af05834ae94c01a (patch) | |
tree | b8006c7a1471bade7d70ee7decc38a2d6e29252e /include/git2/patch.h | |
parent | 51297cadb32df3f7e1b1820034ff5a4ed6703668 (diff) | |
download | libgit2-7a28f268adc1d2569ce504147af05834ae94c01a.tar.gz |
Fix const-correctness of git_patch_get_delta, git_patch_num_hunks, git_patch_num_lines_in_hunk
Diffstat (limited to 'include/git2/patch.h')
-rw-r--r-- | include/git2/patch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/patch.h b/include/git2/patch.h index f5ec682c6..47c395669 100644 --- a/include/git2/patch.h +++ b/include/git2/patch.h @@ -141,12 +141,12 @@ GIT_EXTERN(void) git_patch_free(git_patch *patch); /** * Get the delta associated with a patch */ -GIT_EXTERN(const git_diff_delta *) git_patch_get_delta(git_patch *patch); +GIT_EXTERN(const git_diff_delta *) git_patch_get_delta(const git_patch *patch); /** * Get the number of hunks in a patch */ -GIT_EXTERN(size_t) git_patch_num_hunks(git_patch *patch); +GIT_EXTERN(size_t) git_patch_num_hunks(const git_patch *patch); /** * Get line counts of each type in a patch. @@ -197,7 +197,7 @@ GIT_EXTERN(int) git_patch_get_hunk( * @return Number of lines in hunk or -1 if invalid hunk index */ GIT_EXTERN(int) git_patch_num_lines_in_hunk( - git_patch *patch, + const git_patch *patch, size_t hunk_idx); /** |