{"thread":{"id":"5321","subject":"Why git-ls-tree has no --stdin option?","startedAt":"2006-08-18T10:40:11Z","lastAt":"2006-08-18T17:44:54Z","messageCount":3,"participants":["Jakub Narebski","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"25540","messageId":"ec45ca$id8$1@sea.gmane.org","threadId":"5321","inReplyTo":null,"subject":"Why git-ls-tree has no --stdin option?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-08-18T10:40:11Z","receivedAt":"2006-08-18T10:40:11Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Why git-ls-tree has no --stdin option to give <tree-ish> (feed it from\ngit-ref-list for example), like git-diff-tree has? The output format could\nbe similar: treeish, then git-ls-tree output, treeish, tree,...\n\nAlso, is there a combination of options which would display only exact\nmatches to path limit, i.e. tree entry only if path is directory, and file\n(blob) entry only if path is ordinary file?\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"25576","messageId":"7v7j16aqpv.fsf@assigned-by-dhcp.cox.net","threadId":"5321","inReplyTo":"ec45ca$id8$1@sea.gmane.org","subject":"Re: Why git-ls-tree has no --stdin option?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-08-18T17:39:08Z","receivedAt":"2006-08-18T17:39:08Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jakub Narebski <jnareb@gmail.com> writes:\n\n> Why git-ls-tree has no --stdin option to give <tree-ish> (feed it from\n> git-ref-list for example), like git-diff-tree has? The output format could\n> be similar: treeish, then git-ls-tree output, treeish, tree,...\n\nThe only reason is nobody felt need for it so far, hence nobody\nbothered.  If you find it useful, go wild.\n\n> Also, is there a combination of options which would display only exact\n> matches to path limit, i.e. tree entry only if path is directory, and file\n> (blob) entry only if path is ordinary file?\n\nI probably am misunderstanding the question but an empty set is\nthe combination you want perhaps?\n\n$ git ls-tree HEAD -- t Document sha1 sha1_name.c\n100644 blob e9eb6ce882ea92523c9a871c7581457af2dc78c5\tsha1_name.c\n040000 tree 3fb2bfdfef59e4ed10f525ef10ad8b43b8bc459e\tt\n"},{"id":"25577","messageId":"ec4ual$9k8$1@sea.gmane.org","threadId":"5321","inReplyTo":"7v7j16aqpv.fsf@assigned-by-dhcp.cox.net","subject":"Re: Why git-ls-tree has no --stdin option?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-08-18T17:44:54Z","receivedAt":"2006-08-18T17:44:54Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Junio C Hamano wrote:\n\n>> Also, is there a combination of options which would display only exact\n>> matches to path limit, i.e. tree entry only if path is directory, and file\n>> (blob) entry only if path is ordinary file?\n> \n> I probably am misunderstanding the question but an empty set is\n> the combination you want perhaps?\n> \n> $ git ls-tree HEAD -- t Document sha1 sha1_name.c\n> 100644 blob e9eb6ce882ea92523c9a871c7581457af2dc78c5    sha1_name.c\n> 040000 tree 3fb2bfdfef59e4ed10f525ef10ad8b43b8bc459e    t\n\nYes, thank you very much. \n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}