summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-21 11:03:07 -0800
committerBen Straub <bs@github.com>2012-11-27 13:18:29 -0800
commit16248ee2d1d67bd386277bca67f04049afef875e (patch)
tree2ae7078fbe8aa91dd0d094afc0a38c33a4cb6732 /src/tree.h
parentf45d51ff8e04c6849413c13aedcf5abacc3c69bd (diff)
downloadlibgit2-16248ee2d1d67bd386277bca67f04049afef875e.tar.gz
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.
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tree.h b/src/tree.h
index b67c55202..e0bcd6acf 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -51,7 +51,8 @@ int git_tree__prefix_position(git_tree *tree, const char *prefix);
/**
* Write a tree to the given repository
*/
-int git_tree__write_index(git_oid *oid, git_index *index, git_repository *repo);
+int git_tree__write_index(
+ git_oid *oid, git_index *index, git_repository *repo);
/**
* Obsolete mode kept for compatibility reasons