summaryrefslogtreecommitdiff
path: root/include/git2/branch.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-07-20 16:34:08 +0200
committernulltoken <emeric.fermas@gmail.com>2012-07-24 16:09:47 +0200
commitbf9e8cc86b9c32946a395fd12a9b1a5cb71575a9 (patch)
treea1fc0a1a46a30a4ec809bfe276b50f80f5415f85 /include/git2/branch.h
parentabee7bd36a8a00e9578d3c94b1b7080f5b5c7dc8 (diff)
downloadlibgit2-bf9e8cc86b9c32946a395fd12a9b1a5cb71575a9.tar.gz
branch: make git_branch_move() reference based
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r--include/git2/branch.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h
index fcddb9332..724cfba12 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -96,24 +96,19 @@ GIT_EXTERN(int) git_branch_foreach(
);
/**
- * Move/rename an existing branch reference.
+ * Move/rename an existing local branch reference.
*
- * @param repo Repository where lives the branch.
- *
- * @param old_branch_name Current name of the branch to be moved;
- * this name is validated for consistency.
+ * @param branch Current underlying reference of the branch.
*
* @param new_branch_name Target name of the branch once the move
* is performed; this name is validated for consistency.
*
* @param force Overwrite existing branch.
*
- * @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_move(
- git_repository *repo,
- const char *old_branch_name,
+ git_reference *branch,
const char *new_branch_name,
int force);