]> git.proxmox.com Git - libgit2.git/commit
Add const to all shared pointers in diff API
authorRussell Belfer <rb@github.com>
Tue, 25 Sep 2012 23:31:46 +0000 (16:31 -0700)
committerRussell Belfer <rb@github.com>
Tue, 25 Sep 2012 23:35:05 +0000 (16:35 -0700)
commitbae957b95d59a840df72a725b06f00635471cfd8
tree64eb7f9f52c9d27f4aa0ad00d2249af39e0ee2fc
parent642863086575a61b3ed0bbbe909f4f07d87ff9db
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!
13 files changed:
include/git2/diff.h
src/checkout.c
src/diff.c
src/diff.h
src/diff_output.c
src/diff_output.h
tests-clar/diff/diff_helpers.c
tests-clar/diff/diff_helpers.h
tests-clar/diff/diffiter.c
tests-clar/diff/index.c
tests-clar/diff/patch.c
tests-clar/diff/tree.c
tests-clar/diff/workdir.c