]> git.proxmox.com Git - libgit2.git/commit - examples/status.c
No such thing as an orphan branch
authorCarlos Martín Nieto <cmn@dwim.me>
Tue, 17 Sep 2013 07:50:30 +0000 (09:50 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Tue, 17 Sep 2013 07:50:30 +0000 (09:50 +0200)
commit605da51a2cfd86901b6fa5f9cf71111a63ab4418
treedbe23d26a4cbd93d457c68fdec7b4b10605314ac
parentc62b5ca590fb2f1743f43439b04159b168a36dda
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.
25 files changed:
examples/status.c
include/git2/checkout.h
include/git2/errors.h
include/git2/repository.h
src/branch.c
src/checkout.c
src/clone.c
src/remote.c
src/repository.c
src/stash.c
src/status.c
src/submodule.c
tests-clar/checkout/head.c
tests-clar/clone/empty.c
tests-clar/clone/nonetwork.c
tests-clar/online/clone.c
tests-clar/refs/branches/delete.c
tests-clar/refs/branches/ishead.c
tests-clar/repo/head.c
tests-clar/repo/headtree.c
tests-clar/repo/repo_helpers.c
tests-clar/repo/repo_helpers.h
tests-clar/reset/soft.c
tests-clar/stash/save.c
tests-clar/submodule/lookup.c