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

Re: Why git-ls-tree has no --stdin option?

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 18, 2006, 17:44 UTC
Message-ID
<ec4ual$9k8$1@sea.gmane.org>
In-Reply-To
<7v7j16aqpv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 10 quoted lines
>> Also, is there a combination of options which would display only exact
>> matches to path limit, i.e. tree entry only if path is directory, and file
>> (blob) entry only if path is ordinary file?
> 
> I probably am misunderstanding the question but an empty set is
> the combination you want perhaps?
> 
> $ git ls-tree HEAD -- t Document sha1 sha1_name.c
> 100644 blob e9eb6ce882ea92523c9a871c7581457af2dc78c5    sha1_name.c
> 040000 tree 3fb2bfdfef59e4ed10f525ef10ad8b43b8bc459e    t
Yes, thank you very much. 
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C Hamano
Message 3 of 3 in “Why git-ls-tree has no --stdin option?”
  1. Jakub NarebskiAug 18, 2006
  2. Junio C HamanoAug 18, 2006
  3. Jakub NarebskiAug 18, 2006

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.