]> git.proxmox.com Git - libgit2.git/commit
Fix up some missing consts in tree & index
authorRussell Belfer <rb@github.com>
Wed, 21 Nov 2012 19:03:07 +0000 (11:03 -0800)
committerBen Straub <bs@github.com>
Tue, 27 Nov 2012 21:18:29 +0000 (13:18 -0800)
commit16248ee2d1d67bd386277bca67f04049afef875e
tree2ae7078fbe8aa91dd0d094afc0a38c33a4cb6732
parentf45d51ff8e04c6849413c13aedcf5abacc3c69bd
Fix up some missing consts in tree & index

This fixes some missed places where we can apply const-ness to
various public APIs.

There are still some index and tree APIs that cannot take const
pointers because we sort our `git_vectors` lazily and so we can't
reliably bsearch the index and tree content without applying a
`git_vector_sort()` first.

This also fixes some missed places where size_t can be used and
where const can be applied to a couple internal functions.
include/git2/index.h
include/git2/tree.h
src/index.c
src/index.h
src/iterator.c
src/tree.c
src/tree.h
src/util.c
src/vector.c
src/vector.h
tests-clar/core/vector.c