git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] git-checkout.txt: fix incorrect statement about HEAD and index
@ 2009-04-06 20:45 Matthieu Moy
  2009-04-06 20:45 ` [PATCH 2/2] git-checkout.txt: clarify that <branch> applies when no path is given Matthieu Moy
  2009-04-07  1:08 ` [PATCH 1/2] git-checkout.txt: fix incorrect statement about HEAD and index Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Matthieu Moy @ 2009-04-06 20:45 UTC (permalink / raw)
  To: gitster, git; +Cc: Matthieu Moy

The command "git checkout" checks out from the index by default, not
HEAD (the introducing comment were correct, but the detailled
explanation added below were not).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 Documentation/git-checkout.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 1a6c19e..0b5485b 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -191,7 +191,7 @@ $ git checkout hello.c            <3>
 +
 <1> switch branch
 <2> take a file out of another commit
-<3> restore hello.c from HEAD of current branch
+<3> restore hello.c from the index
 +
 If you have an unfortunate branch that is named `hello.c`, this
 step would be confused as an instruction to switch to that branch.
-- 
1.6.2.1.427.g061ea

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-07 12:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 20:45 [PATCH 1/2] git-checkout.txt: fix incorrect statement about HEAD and index Matthieu Moy
2009-04-06 20:45 ` [PATCH 2/2] git-checkout.txt: clarify that <branch> applies when no path is given Matthieu Moy
2009-04-07  9:41   ` Mike Ralphson
2009-04-07 10:20     ` [PATCH 1/2] " Matthieu Moy
2009-04-07 12:43       ` [PATCH v2] " Matthieu Moy
2009-04-07  1:08 ` [PATCH 1/2] git-checkout.txt: fix incorrect statement about HEAD and index Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).