From 02ac98374eefbe4a46d4b53a8a78057ad8ad39b7 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Thu, 24 Jun 2010 03:29:00 +0800 Subject: [PATCH] builtin/checkout: learn -B Internally, --track and --orphan still use the 'safe' -b, not -B. Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- 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 261dd90c38..97c51449f7 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=