From: Junio C Hamano Date: Mon, 17 Dec 2012 07:21:32 GMT Subject: Re: [PATCH 2/2] Documentation/git-checkout.txt: document 70c9ac2 behavior Message-ID: <7vd2y9nnyb.fsf@alter.siamese.dyndns.org> In-Reply-To: <1355726702-27974-3-git-send-email-chris@rorvick.com> Chris Rorvick writes: > Document the behavior implemented in 70c9ac2 (DWIM "git checkout > frotz" to "git checkout -b frotz origin/frotz"). > > Signed-off-by: Chris Rorvick > --- > Documentation/git-checkout.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt > index a47555c..db89cf7 100644 > --- a/Documentation/git-checkout.txt > +++ b/Documentation/git-checkout.txt > @@ -25,6 +25,14 @@ branch. > > Update the index, working tree, and HEAD to reflect the > specified branch. > ++ > +If is not found but there does exist a tracking branch in > +exactly one remote (call it ) with a matching name, treat as > +equivalent to > ++ > +------------ > +$ git checkout -b --track / > +------------ > > 'git checkout' -b|-B []:: Thanks; does it format well (I didn't check)?