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

Re: [PATCH] ls-tree: add --full-tree option

From
Johannes Sixt <j6t@kdbg.org>
Date
Dec 26, 2008, 19:49 UTC
Message-ID
<49553561.4030902@kdbg.org>
In-Reply-To
<7vmyejpb6o.fsf@gitster.siamese.dyndns.org>
Junio C Hamano schrieb:
Show 13 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes:
> 
>> On Freitag, 26. Dezember 2008, Junio C Hamano wrote:
>>> This new option makes the command operate on the full tree object,
>>> regardless of where in the work tree it is run from.  It also implies the
>>> behaviour that is triggered by the existing --full-name option.
>> What's wrong with using 'git ls-tree ${rev}:'?
>>
>> Except that it does not work...
> 
> Hmph... you seem to be describing the exact issue they discussed on #git,
> which triggered the patch in the message you are responding to.  I am not
> sure what to say to your "What's wrong with...".

I'm saying that if a script has to be fixed to use --full-tree, then it can be fixed just as well by appending the colon to the ${rev}.

Not even porcelain 'git show ${rev}:' "is allowed" to insert the prefix. Dscho has argued the case passionately in the past:

http://thread.gmane.org/gmane.comp.version-control.git/68786/focus=68846
Therefore, plumbing 'ls-tree ${rev}:' shouldn't do that, either.

OTOH, you had yourself argued somewhat in favor of the current ls-tree behavior:

http://thread.gmane.org/gmane.comp.version-control.git/46232/focus=46400

I'm personally more in line with Dscho, and think that the current ls-tree behavior is a terrible bug.

-- Hannes
Previous: demerphqNext: Junio C Hamano
Message 5 of 6 in “ls-tree: add --full-tree option”
  1. ls-tree: add --full-tree optionJunio C Hamano, Dec 26, 2008
  2. Johannes SixtDec 26, 2008
  3. Junio C HamanoDec 26, 2008
  4. demerphqDec 26, 2008
  5. Johannes SixtDec 26, 2008
  6. Junio C HamanoDec 26, 2008

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.