Re: [PATCH 2/2] Documentation/git-checkout.txt: document 70c9ac2 behavior

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 2/2] Documentation/git-checkout.txt: document 70c9ac2 behavior

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:55:32

Chris Rorvick [off-list ref] writes:
quoted hunk
Document the behavior implemented in 70c9ac2 (DWIM "git checkout
frotz" to "git checkout -b frotz origin/frotz").

Signed-off-by: Chris Rorvick <redacted>
---
 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 <branch> is not found but there does exist a tracking branch in
+exactly one remote (call it <remote>) with a matching name, treat as
+equivalent to
++
+------------
+$ git checkout -b <branch> --track <remote>/<branch>
+------------
 
 'git checkout' -b|-B <new_branch> [<start point>]::
Thanks; does it format well (I didn't check)?

Re: [PATCH 2/2] Documentation/git-checkout.txt: document 70c9ac2 behavior

From: Andrew Ardill <hidden>
Date: 2016-06-15 22:55:32

On 17 December 2012 18:21, Junio C Hamano [off-list ref] wrote:
does it format well (I didn't check)?
It applied cleanly for me on latest master, and the output looked
consistent with existing documentation.

Regards,

Andrew Ardill
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help