Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Documentation/git-checkout.txt: document 70c9ac2 behavior
author
Chris Rorvick
<chris@rorvick.com>
Mon, 17 Dec 2012 06:45:02 +0000
(
00:45
-0600)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 18 Dec 2012 19:07:44 +0000
(11:07 -0800)
Document the behavior implemented in
70c9ac2
(DWIM "git checkout
frotz" to "git checkout -b frotz origin/frotz").
Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e1cdf63
)
diff --git
a/Documentation/git-checkout.txt
b/Documentation/git-checkout.txt
index ad33eb49ae79dd3d100b5512a696635957be1af3..6f04d22f5e15ea0805fb44c9c856952d759bc050 100644
(file)
--- a/
Documentation/git-checkout.txt
+++ b/
Documentation/git-checkout.txt
@@
-28,6
+28,14
@@
branch.
working tree are kept, so that they can be committed to the
<branch>.
+
working tree are kept, so that they can be committed to the
<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>
+------------
++
You could omit <branch>, in which case the command degenerates to
"check out the current branch", which is a glorified no-op with a
rather expensive side-effects to show only the tracking information,
You could omit <branch>, in which case the command degenerates to
"check out the current branch", which is a glorified no-op with a
rather expensive side-effects to show only the tracking information,