summaryrefslogtreecommitdiff
path: root/include/git2/checkout.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-17 09:50:30 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-09-17 09:50:30 +0200
commit605da51a2cfd86901b6fa5f9cf71111a63ab4418 (patch)
treedbe23d26a4cbd93d457c68fdec7b4b10605314ac /include/git2/checkout.h
parentc62b5ca590fb2f1743f43439b04159b168a36dda (diff)
downloadlibgit2-605da51a2cfd86901b6fa5f9cf71111a63ab4418.tar.gz
No such thing as an orphan branch
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
Diffstat (limited to 'include/git2/checkout.h')
-rw-r--r--include/git2/checkout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h
index a086408c7..aa48069cd 100644
--- a/include/git2/checkout.h
+++ b/include/git2/checkout.h
@@ -249,7 +249,7 @@ typedef struct git_checkout_opts {
*
* @param repo repository to check out (must be non-bare)
* @param opts specifies checkout options (may be NULL)
- * @return 0 on success, GIT_EORPHANEDHEAD when HEAD points to a non existing
+ * @return 0 on success, GIT_EUNBORNBRANCH when HEAD points to a non existing
* branch, GIT_ERROR otherwise (use giterr_last for information
* about the error)
*/