summaryrefslogtreecommitdiff
path: root/include/git2/patch.h
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-04-16 19:09:35 +0200
committerVicent Marti <vicent@github.com>2014-04-16 19:09:35 +0200
commitc5cacc4ec2c13e93164b8e3013b0d18c8c6d820c (patch)
tree19ee82e4327f0d30a4e75bc5d7997430fbb2becf /include/git2/patch.h
parent3b2d14a7b83e0db272c84046f90b53b7b773180e (diff)
parent39206ca256409edb7102edf0d30a6ced2e5f16e3 (diff)
downloadlibgit2-c5cacc4ec2c13e93164b8e3013b0d18c8c6d820c.tar.gz
Merge pull request #2261 from jacquesg/format-patch
Support for format-patch
Diffstat (limited to 'include/git2/patch.h')
-rw-r--r--include/git2/patch.h6
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);
/**