]> git.ipfire.org Git - thirdparty/git.git/commit
git checkout --no-guess
authorJunio C Hamano <gitster@pobox.com>
Sun, 18 Oct 2009 07:49:23 +0000 (00:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Oct 2009 22:17:24 +0000 (15:17 -0700)
commit46148dd7ea41de10fc784c247924f73ddb21121b
treed1f023dae34f20484a7133aad7b237def5fc7c40
parent70c9ac2f1999b7e0c17a864235537cffe29dfea4
git checkout --no-guess

Porcelains may want to make sure their calls to "git checkout" will
reliably fail regardless of the presense of random remote tracking
branches by the new DWIMmery introduced.

Luckily all existing in-tree callers have extra checks to make sure they
feed local branch name when they want to switch, or they explicitly ask to
detach HEAD at the given commit, so there is no need to add this option
for them.

As this is strictly script-only option, do not even bother to document it,
and do bother to hide it from "git checkout -h".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c