Thread (5 messages) flat view 5 messages, 5 authors, 2016-06-15

Re: [PATCH 1/2] Documentation/git-checkout.txt: clarify usage

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:55:32

Possibly related (same subject, not in this thread)

Am 12/17/2012 8:21, schrieb Junio C Hamano:
Chris Rorvick [off-list ref] writes:
quoted
 'git checkout' [<branch>]::
Is <branch> really optional in this form?

BTW, what does plain 'git checkout' do? Just report ahead/behind information?
quoted
+
+	Update the index, working tree, and HEAD to reflect the
+	specified branch.
...
quoted
+'git checkout' [--detach] [<commit>]::
The title here is better spelled as two lines:

'git checkout' <commit>::
'git checkout' --detach <branch>::

I don't think that <commit> or <branch> should be indicated as optional here.
quoted
+
+	Update the index and working tree to reflect the specified
+	commit and set HEAD to point directly to <commit> (see
+	"DETACHED HEAD" section.)  Passing `--detach` forces this
+	behavior even if <commit> is a branch.
	Prepare to work on building new history on top of <commit>,
        by detaching HEAD at the commit and ...(likewise)...
-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help