From: Nguyen Thai Ngoc Duy Date: Wed, 23 Mar 2011 14:14:08 GMT Subject: Re: Relative ls-files Message-ID: In-Reply-To: <7v7hbqgc7g.fsf@alter.siamese.dyndns.org> On Wed, Mar 23, 2011 at 9:09 PM, Junio C Hamano wrote: > Martin Langhoff writes: > >> and the answer is git ls-files --with-tree= | grep . >> But the --with-tree param is so counterintuitive to me that I read the >> manpage, everytime. > > Because --with-tree nor ls-files is the tool that was designed for. > > If you want to find out about a branch, why aren't you using "ls-tree -r"? (off topic?) "ls-tree -r" does not understand wildcards. Maybe it should not, but I think read_tree_recursive() should use tree_entry_interesting(). The function it uses for matching, match_tree_entry, looks like another variant of t_e_interesting. -- Duy