diff options
author | Vicent Martà <vicent@github.com> | 2013-09-17 03:45:35 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-09-17 03:45:35 -0700 |
commit | efc9e6700fabc91ea490fcc5ea034b51648c9e88 (patch) | |
tree | 08f13e7c4f17a3e35f7342d51363441833ac59f4 /include/git2 | |
parent | 38fba8371e4c6c0042645a8bf2ba4aa2f2cdf730 (diff) | |
parent | 605da51a2cfd86901b6fa5f9cf71111a63ab4418 (diff) | |
download | libgit2-efc9e6700fabc91ea490fcc5ea034b51648c9e88.tar.gz |
Merge pull request #1856 from libgit2/cmn/no-orphans
No such thing as an orphan branch
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/checkout.h | 2 | ||||
-rw-r--r-- | include/git2/errors.h | 2 | ||||
-rw-r--r-- | include/git2/repository.h | 12 |
3 files changed, 8 insertions, 8 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) */ diff --git a/include/git2/errors.h b/include/git2/errors.h index 6b47e00e8..dc4486ade 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -27,7 +27,7 @@ typedef enum { GIT_EBUFS = -6, GIT_EUSER = -7, GIT_EBAREREPO = -8, - GIT_EORPHANEDHEAD = -9, + GIT_EUNBORNBRANCH = -9, GIT_EUNMERGED = -10, GIT_ENONFASTFORWARD = -11, GIT_EINVALIDSPEC = -12, diff --git a/include/git2/repository.h b/include/git2/repository.h index 807d834fe..b4d561992 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -297,7 +297,7 @@ GIT_EXTERN(int) git_repository_init_ext( * @param out pointer to the reference which will be retrieved * @param repo a repository object * - * @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_ENOTFOUND when HEAD is missing; an error code otherwise */ GIT_EXTERN(int) git_repository_head(git_reference **out, git_repository *repo); @@ -315,16 +315,16 @@ GIT_EXTERN(int) git_repository_head(git_reference **out, git_repository *repo); GIT_EXTERN(int) git_repository_head_detached(git_repository *repo); /** - * Check if the current branch is an orphan + * Check if the current branch is unborn * - * An orphan branch is one named from HEAD but which doesn't exist in + * An unborn branch is one named from HEAD but which doesn't exist in * the refs namespace, because it doesn't have any commit to point to. * * @param repo Repo to test - * @return 1 if the current branch is an orphan, 0 if it's not; error + * @return 1 if the current branch is unborn, 0 if it's not; error * code if there was an error */ -GIT_EXTERN(int) git_repository_head_orphan(git_repository *repo); +GIT_EXTERN(int) git_repository_head_unborn(git_repository *repo); /** * Check if a repository is empty @@ -611,7 +611,7 @@ 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, GIT_EORPHANEDHEAD when HEAD points to a non existing + * @return 0 on success, GIT_EUNBORNBRANCH when HEAD points to a non existing * branch or an error code */ GIT_EXTERN(int) git_repository_detach_head( |