summaryrefslogtreecommitdiff
path: root/include/git2/repository.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-10-19 17:07:39 +0200
committernulltoken <emeric.fermas@gmail.com>2012-10-19 22:01:53 +0200
commit8b05bea87042010c2d9c71d0be17f45bf5bea2a3 (patch)
tree341b12f077179abef9b38bd70eb8bc4f53b37cbc /include/git2/repository.h
parentc4f68b3503ea37fc179fccfc49bb17469bd7ff70 (diff)
downloadlibgit2-8b05bea87042010c2d9c71d0be17f45bf5bea2a3.tar.gz
errors: deploy GIT_EORPHANEDHEAD usage
Diffstat (limited to 'include/git2/repository.h')
-rw-r--r--include/git2/repository.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 025a0a95d..32a2f6449 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -272,7 +272,8 @@ GIT_EXTERN(int) git_repository_init_ext(
* @param head_out pointer to the reference which will be retrieved
* @param repo a repository object
*
- * @return 0 on success; error code otherwise
+ * @return 0 on success, GIT_EORPHANEDHEAD when HEAD points to a non existing
+ * branch, an error code otherwise
*/
GIT_EXTERN(int) git_repository_head(git_reference **head_out, git_repository *repo);
@@ -562,7 +563,8 @@ GIT_EXTERN(int) git_repository_set_head_detached(
* Otherwise, the HEAD will be detached and point to the peeled Commit.
*
* @param repo Repository pointer
- * @return 0 on success, or an error code
+ * @return 0 on success, GIT_EORPHANEDHEAD when HEAD points to a non existing
+ * branchor an error code
*/
GIT_EXTERN(int) git_repository_detach_head(
git_repository* repo);