diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-19 15:39:16 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-24 16:09:43 +0200 |
commit | b308c11e4ee7d05df4906e04b4008615f41e069c (patch) | |
tree | 405f8438f67330755541c935c52f4f0fd3014951 /include/git2/branch.h | |
parent | 326ca710a04cc43d3d5abba6ceb0452c126b7d1a (diff) | |
download | libgit2-b308c11e4ee7d05df4906e04b4008615f41e069c.tar.gz |
branch: change git_branch_create() to make it return a reference
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r-- | include/git2/branch.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h index 8884df15a..7442ece03 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -26,9 +26,9 @@ GIT_BEGIN_DECL * this target commit. If `force` is true and a reference * already exists with the given name, it'll be replaced. * - * @param oid_out Pointer where to store the OID of the target commit. + * The returned reference must be freed by the user. * - * @param repo Repository where to store the branch. + * @param ref_out Pointer where to store the underlying reference. * * @param branch_name Name for the branch; this name is * validated for consistency. It should also not conflict with @@ -46,8 +46,7 @@ GIT_BEGIN_DECL * pointing to the provided target commit. */ GIT_EXTERN(int) git_branch_create( - git_oid *oid_out, - git_repository *repo, + git_reference **ref_out, const char *branch_name, const git_object *target, int force); |