From 1c947daa80dfa442acbf8119530a3dcbf5af00c5 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 23 Aug 2012 15:47:29 -0700 Subject: branch: Change `git_branch_delete` to take a ref --- include/git2/branch.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'include/git2/branch.h') diff --git a/include/git2/branch.h b/include/git2/branch.h index 8bf7eb9d4..81105d6e2 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -55,21 +55,11 @@ GIT_EXTERN(int) git_branch_create( /** * Delete an existing branch reference. * - * @param repo Repository where lives the branch. + * @param branch A valid reference representing a branch * - * @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. + * @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. -- cgit v1.2.1