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 /src/checkout.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 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c index 7cf9fe033..e429d2876 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -126,7 +126,7 @@ static int blob_content_to_link(git_blob *blob, const char *path, bool can_symli static int checkout_blob( git_repository *repo, - git_oid *blob_oid, + const git_oid *blob_oid, const char *path, mode_t filemode, bool can_symlink, @@ -150,7 +150,7 @@ static int checkout_blob( static int checkout_diff_fn( void *cb_data, - git_diff_delta *delta, + const git_diff_delta *delta, float progress) { struct checkout_diff_data *data; |