From: Junio C Hamano Date: Sat, 08 Sep 2012 18:54:34 GMT Subject: Re: checkout extra files Message-ID: <7va9x0uyz9.fsf@alter.siamese.dyndns.org> In-Reply-To: Angelo Borsotti writes: > It makes quite clear that the command accepts wildcards > (not expanded by the shell), which was is not clear in the current > man page (although one could imagine that could also be a > wildcard). > > P.S. In the man page there is also a > > "*git checkout* [-p|--patch] [] [--] ... > > that should perhaps be a That's backwards. Saying as if it means a plain vanilla pathname is a cause of confusion. The command takes pathspec, which is a pattern (see "git help glossary"). The places in the text that say may need to be fixed. It just happens that you do not realize that you are using pathspec when you say "git checkout hello.c", as the pattern "hello.c" only matches the one pathname "hello.c".