summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorBrad Morgan <brad@dmgctrl.com>2013-05-07 14:30:35 -0400
committerBrad Morgan <brad@dmgctrl.com>2013-05-07 14:30:35 -0400
commit00e43380a0beee3ac40935c45d4aa67fbfc27fbb (patch)
tree6b9c959fa74694fb0f1841d9669dfc6221ff4277 /include/git2/tree.h
parent7369b3c3bf396e466d065f9921415fe2b9d69a7a (diff)
parent42b2bcf038b4e45df33a1078dd05a95759addd35 (diff)
downloadlibgit2-00e43380a0beee3ac40935c45d4aa67fbfc27fbb.tar.gz
Merge remote-tracking branch 'origin/development' into ssh_transport
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 73bfc86f4..6ad722048 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -29,11 +29,8 @@ GIT_BEGIN_DECL
* @param id Identity of the tree to locate.
* @return 0 or an error code
*/
-GIT_INLINE(int) git_tree_lookup(
- git_tree **out, git_repository *repo, const git_oid *id)
-{
- return git_object_lookup((git_object **)out, repo, id, GIT_OBJ_TREE);
-}
+GIT_EXTERN(int) git_tree_lookup(
+ git_tree **out, git_repository *repo, const git_oid *id);
/**
* Lookup a tree object from the repository,
@@ -47,15 +44,11 @@ GIT_INLINE(int) git_tree_lookup(
* @param len the length of the short identifier
* @return 0 or an error code
*/
-GIT_INLINE(int) git_tree_lookup_prefix(
+GIT_EXTERN(int) git_tree_lookup_prefix(
git_tree **out,
git_repository *repo,
const git_oid *id,
- size_t len)
-{
- return git_object_lookup_prefix(
- (git_object **)out, repo, id, len, GIT_OBJ_TREE);
-}
+ size_t len);
/**
* Close an open tree
@@ -67,10 +60,7 @@ GIT_INLINE(int) git_tree_lookup_prefix(
*
* @param tree The tree to close
*/
-GIT_INLINE(void) git_tree_free(git_tree *tree)
-{
- git_object_free((git_object *)tree);
-}
+GIT_EXTERN(void) git_tree_free(git_tree *tree);
/**
* Get the id of a tree.