summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-04-30 04:02:52 -0700
committerVicent Martí <vicent@github.com>2013-04-30 04:02:52 -0700
commitcd2ed9f0cc9d8e0e1724304e946adb28271e0669 (patch)
treecdf9e1dade9f0d6e0317735ac2d40d81ff074c16 /include/git2/tree.h
parentd76fb20ebce03b2fd87c2472d556bf9b64894efd (diff)
parent203d5b0e6829242ea412bbef7751e3c522ac5dd8 (diff)
downloadlibgit2-cd2ed9f0cc9d8e0e1724304e946adb28271e0669.tar.gz
Merge pull request #1518 from arrbee/export-oid-comparison
Remove most inlines from the public API
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.