From: Tay Ray Chuan Date: Wed, 23 Jun 2010 19:29:00 GMT Subject: [PATCH v2 3/3] builtin/checkout: learn -B Message-ID: <1277321340-4000-4-git-send-email-rctay89@gmail.com> In-Reply-To: <1277321340-4000-3-git-send-email-rctay89@gmail.com> Internally, --track and --orphan still use the 'safe' -b, not -B. Signed-off-by: Tay Ray Chuan --- Junio, I didn't wait for your reply to my suggestion about using "git reset" instead, as I hope to put this out for review before I creep to bed - I'll put it in the next iteration, if need be. Documentation/git-checkout.txt | 21 ++++++++++++++++- builtin/checkout.c | 29 +++++++++++++++++++++---- t/t2018-checkout-branch.sh | 45 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 7 deletions(-) diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 261dd90..97c5144 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'git checkout' [-q] [-f] [-m] [] -'git checkout' [-q] [-f] [-m] [[-b|--orphan] ] [] +'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 'git checkout' [-f|--ours|--theirs|-m|--conflict=