diff options
author | Russell Belfer <rb@github.com> | 2012-09-25 16:31:46 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-09-25 16:35:05 -0700 |
commit | bae957b95d59a840df72a725b06f00635471cfd8 (patch) | |
tree | 64eb7f9f52c9d27f4aa0ad00d2249af39e0ee2fc /tests-clar/diff/workdir.c | |
parent | 642863086575a61b3ed0bbbe909f4f07d87ff9db (diff) | |
download | libgit2-bae957b95d59a840df72a725b06f00635471cfd8.tar.gz |
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 'tests-clar/diff/workdir.c')
-rw-r--r-- | tests-clar/diff/workdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/diff/workdir.c b/tests-clar/diff/workdir.c index 612e44303..916113178 100644 --- a/tests-clar/diff/workdir.c +++ b/tests-clar/diff/workdir.c @@ -691,7 +691,7 @@ void test_diff_workdir__larger_hunks(void) for (i = 0; i <= 2; ++i) { git_diff_list *diff = NULL; git_diff_patch *patch; - git_diff_range *range; + const git_diff_range *range; const char *header, *line; char origin; |