Re: [PATCH 0/3] teach git-checkout -B WAS builtin/checkout: DWIM with -f -b
- From
Tay Ray Chuan <rctay89@gmail.com>
- Date
- Jun 21, 2010, 17:24 UTC
- Message-ID
- <AANLkTikBFKdeuqQZOTRzxKE_6nR3bNDDsEtGIJVT0nhz@mail.gmail.com>
- In-Reply-To
- <1277140782-4064-1-git-send-email-rctay89@gmail.com>
On Tue, Jun 22, 2010 at 1:19 AM, Tay Ray Chuan <rctay89@gmail.com> wrote:
Show 11 quoted lines
> Right now, the -f/--force in git-checkout doesn't carry over to -b > operations - ie. you can't do git checkout -b branch on an existing > branch. > > This patch allows you to do this with the -B option, so that one can do > > git checkout -B branch ref > > which is equivalent to > > git branch -f branch ref && git checkout branch
oops - forgot to add this to the cover letter:
Jeff, I've tried my best to check that the --track DWIM-ery still works; could you second this?
Erick, does this series change how --orphan should be used?
-- Cheers, Ray Chuan