* Why git-ls-tree has no --stdin option?
@ 2006-08-18 10:40 Jakub Narebski
2006-08-18 17:39 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2006-08-18 10:40 UTC (permalink / raw)
To: git
Why git-ls-tree has no --stdin option to give <tree-ish> (feed it from
git-ref-list for example), like git-diff-tree has? The output format could
be similar: treeish, then git-ls-tree output, treeish, tree,...
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?
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why git-ls-tree has no --stdin option?
2006-08-18 10:40 Why git-ls-tree has no --stdin option? Jakub Narebski
@ 2006-08-18 17:39 ` Junio C Hamano
2006-08-18 17:44 ` Jakub Narebski
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2006-08-18 17:39 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
Jakub Narebski <jnareb@gmail.com> writes:
> Why git-ls-tree has no --stdin option to give <tree-ish> (feed it from
> git-ref-list for example), like git-diff-tree has? The output format could
> be similar: treeish, then git-ls-tree output, treeish, tree,...
The only reason is nobody felt need for it so far, hence nobody
bothered. If you find it useful, go wild.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why git-ls-tree has no --stdin option?
2006-08-18 17:39 ` Junio C Hamano
@ 2006-08-18 17:44 ` Jakub Narebski
0 siblings, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2006-08-18 17:44 UTC (permalink / raw)
To: git
Junio C Hamano wrote:
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-18 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 10:40 Why git-ls-tree has no --stdin option? Jakub Narebski
2006-08-18 17:39 ` Junio C Hamano
2006-08-18 17:44 ` Jakub Narebski
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).