summaryrefslogtreecommitdiff
path: root/include/git2/branch.h
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 13:53:38 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-18 13:53:38 -0700
commit59d91979d87b8d355696a943f562eb326cee6c38 (patch)
tree4b76f8371ecb965d3d40423166c73e22db19e272 /include/git2/branch.h
parent498b72eb6fdc8b34c1d52b6bb09ba8a198f86666 (diff)
parent904b67e69fa15b7a3246e43b3d78645ffa2331f6 (diff)
downloadlibgit2-59d91979d87b8d355696a943f562eb326cee6c38.tar.gz
Merge pull request #710 from libgit2/breaking-changes
Break everything before the release
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r--include/git2/branch.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h
index f4681dc09..e2432bcfc 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -41,7 +41,7 @@ GIT_BEGIN_DECL
*
* @param force Overwrite existing branch.
*
- * @return GIT_SUCCESS or an error code.
+ * @return 0 or an error code.
* A proper reference is written in the refs/heads namespace
* pointing to the provided target commit.
*/
@@ -63,13 +63,13 @@ GIT_EXTERN(int) git_branch_create(
* @param branch_type Type of the considered branch. This should
* be valued with either GIT_BRANCH_LOCAL or GIT_BRANCH_REMOTE.
*
- * @return GIT_SUCCESS on success, GIT_ENOTFOUND if the branch
+ * @return 0 on success, GIT_ENOTFOUND if the branch
* doesn't exist or an error code.
*/
GIT_EXTERN(int) git_branch_delete(
git_repository *repo,
const char *branch_name,
- git_branch_type branch_type);
+ git_branch_t branch_type);
/**
* Fill a list with all the branches in the Repository
@@ -88,7 +88,7 @@ GIT_EXTERN(int) git_branch_delete(
* listing. Valid values are GIT_BRANCH_LOCAL, GIT_BRANCH_REMOTE
* or a combination of the two.
*
- * @return GIT_SUCCESS or an error code.
+ * @return 0 or an error code.
*/
GIT_EXTERN(int) git_branch_list(
git_strarray *branch_names,
@@ -108,7 +108,7 @@ GIT_EXTERN(int) git_branch_list(
*
* @param force Overwrite existing branch.
*
- * @return GIT_SUCCESS on success, GIT_ENOTFOUND if the branch
+ * @return 0 on success, GIT_ENOTFOUND if the branch
* doesn't exist or an error code.
*/
GIT_EXTERN(int) git_branch_move(