Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-09-26 03:31:46 +0400
committerRussell Belfer <rb@github.com>2012-09-26 03:35:05 +0400
commitbae957b95d59a840df72a725b06f00635471cfd8 (patch)
tree64eb7f9f52c9d27f4aa0ad00d2249af39e0ee2fc /src/diff.h
parent642863086575a61b3ed0bbbe909f4f07d87ff9db (diff)
Add const to all shared pointers in diff API
There are a lot of places where the diff API gives the user access to internal data structures and many of these were being exposed through non-const pointers. This replaces them all with const pointers for any object that the user can access but is still owned internally to the git_diff_list or git_diff_patch objects. This will probably break some bindings... Sorry!
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.h b/src/diff.h
index 64fe00928..15745b2f3 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -51,7 +51,7 @@ extern void git_diff__cleanup_modes(
extern void git_diff_list_addref(git_diff_list *diff);
extern bool git_diff_delta__should_skip(
- git_diff_options *opts, git_diff_delta *delta);
+ const git_diff_options *opts, const git_diff_delta *delta);
#endif