diff options
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/sys/refs.h | 11 | ||||
| -rw-r--r-- | include/git2/tree.h | 6 |
2 files changed, 14 insertions, 3 deletions
diff --git a/include/git2/sys/refs.h b/include/git2/sys/refs.h index dd95ca12c..d2ce2e0b9 100644 --- a/include/git2/sys/refs.h +++ b/include/git2/sys/refs.h @@ -12,6 +12,15 @@ #include "git2/oid.h" /** + * @file git2/sys/refs.h + * @brief Low-level Git ref creation + * @defgroup git_backend Git custom backend APIs + * @ingroup Git + * @{ + */ +GIT_BEGIN_DECL + +/** * Create a new direct reference from an OID. * * @param name the reference name @@ -35,4 +44,6 @@ GIT_EXTERN(git_reference *) git_reference__alloc_symbolic( const char *name, const char *target); +/** @} */ +GIT_END_DECL #endif diff --git a/include/git2/tree.h b/include/git2/tree.h index 42b68193e..0f7616210 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -247,11 +247,12 @@ GIT_EXTERN(int) git_tree_entry_to_object( * entries and will have to be filled manually. * * @param out Pointer where to store the tree builder + * @param repo Repository in which to store the object * @param source Source tree to initialize the builder (optional) * @return 0 on success; error code otherwise */ GIT_EXTERN(int) git_treebuilder_create( - git_treebuilder **out, const git_tree *source); + git_treebuilder **out, git_repository *repo, const git_tree *source); /** * Clear all the entires in the builder @@ -368,12 +369,11 @@ GIT_EXTERN(void) git_treebuilder_filter( * identifying SHA1 hash will be stored in the `id` pointer. * * @param id Pointer to store the OID of the newly written tree - * @param repo Repository in which to store the object * @param bld Tree builder to write * @return 0 or an error code */ GIT_EXTERN(int) git_treebuilder_write( - git_oid *id, git_repository *repo, git_treebuilder *bld); + git_oid *id, git_treebuilder *bld); /** Callback for the tree traversal method */ |
