git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout error
@ 2012-10-09  7:41 Angelo Borsotti
  2012-10-09  9:36 ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Angelo Borsotti @ 2012-10-09  7:41 UTC (permalink / raw)
  To: git

Hello,

the man page of git checkout in the synopsis does not mention the
--track and --no-track options.
However, in the description below, it states that they are allowed.
It does not say that there is a specific ordering in which they must
be specified.

If they are specified after -b, the command seems to behave as if -b
was not specified, e.g.:

$ git checkout -b --no-track topic remotes/origin/master
fatal: git checkout: updating paths is incompatible with switching branches.

while if they are specified before -b the command behaves properly, e.g.

$ git checkout --no-track -b topic remotes/origin/master
Switched to a new branch 'topic'

If this is the intended syntax, the synopsis should replace:

     git checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>]

by;

     git checkout [-q] [-f] [-m] [[--orphan] <new_branch>] [<start_point>]
     git checkout [-q] [-f] [-m] [ [--track|--no-track](-b|-B)
<new_branch>] [<start_point>]

-Angelo

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

end of thread, other threads:[~2012-10-10  8:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-09  7:41 git checkout error Angelo Borsotti
2012-10-09  9:36 ` Andreas Schwab
2012-10-09 17:55   ` Junio C Hamano
2012-10-09 23:25   ` Angelo Borsotti
2012-10-09 23:47     ` Junio C Hamano
2012-10-10  7:02       ` Angelo Borsotti
2012-10-10  7:40         ` Junio C Hamano
2012-10-10  8:52           ` Angelo Borsotti

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).