diff options
| author | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
| commit | 62eafd0620eff3d7ca3659a3f4a4808488f0b2c3 (patch) | |
| tree | c0f29b20a9e8194ccfb0ea59ad55b56bed803206 /include/git2/branch.h | |
| parent | bd2887a5e5d823b2fc9debef245bcd865ba3dd83 (diff) | |
| parent | 1c947daa80dfa442acbf8119530a3dcbf5af00c5 (diff) | |
| download | libgit2-62eafd0620eff3d7ca3659a3f4a4808488f0b2c3.tar.gz | |
Merge branch 'branch-delete-ref' into development
Conflicts:
include/git2/refs.h
Diffstat (limited to 'include/git2/branch.h')
| -rw-r--r-- | include/git2/branch.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h index 8bf7eb9d4..bbbdf1c4a 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -55,21 +55,13 @@ GIT_EXTERN(int) git_branch_create( /** * Delete an existing branch reference. * - * @param repo Repository where lives the branch. + * If the branch is successfully deleted, the passed reference + * object will be freed and invalidated. * - * @param branch_name Name of the branch to be deleted; - * this name is validated for consistency. - * - * @param branch_type Type of the considered branch. This should - * be valued with either GIT_BRANCH_LOCAL or GIT_BRANCH_REMOTE. - * - * @return 0 on success, GIT_ENOTFOUND if the branch - * doesn't exist or an error code. + * @param branch A valid reference representing a branch + * @return 0 on success, or an error code. */ -GIT_EXTERN(int) git_branch_delete( - git_repository *repo, - const char *branch_name, - git_branch_t branch_type); +GIT_EXTERN(int) git_branch_delete(git_reference *branch); /** * Loop over all the branches and issue a callback for each one. |
