git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone tag shallow

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 18, 2013, 21:49 UTC
Message-ID
<7vobfh9tsr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAByu6UVfArRXGLTKgM=nw0fzij1urcVdzxx6xdoHihODD-LtRA@mail.gmail.com>
Thibault Kruse <tibokruse@googlemail.com> writes:
>> I am not sure why you meant to treat (2) and (3) differently,
>> though.  Care to elaborate?
>
> As in my example, git clone --branch <branch> does not accept all of (3).

That is a prime example of outside "checkout" we give a white lie to show the most common <branch> to help beginners, I think.

Show 5 quoted lines
> That's fair enough, I guess, I am not sure either. If I understand you
> right, the Synopsis and
> description are supposed to explain the non-hackish usage of commands,
> whereas documentation after the OPTIONS headline is supposed to be
> more of a complete description.
It would go more like
	SYNOPSIS
        	git foo <branch>
	DESCRIPTION
        	"git foo" distims doshes in <branch>.
	ARGUMENTS
		* <branch>: the branch to distim doshes in.
		  While it is most common to name a branch, you
                  can give any <committ-ish> to it.

if and only if use is <branch> is the most common and using arbitrary commit is a rare case. In other cases, we would be better to say <committish> on the SYNOPSIS part. That commonness/rareness is a case-by-case matter, I would think.

Previous: Thibault Kruse
Message 6 of 6 in “git clone tag shallow”
  1. Thibault KruseFeb 17, 2013
  2. Duy NguyenFeb 18, 2013
  3. Thibault KruseFeb 18, 2013
  4. Junio C HamanoFeb 18, 2013
  5. Thibault KruseFeb 18, 2013
  6. Junio C HamanoFeb 18, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.