On Wed, Mar 23, 2011 at 9:09 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Martin Langhoff <martin.langhoff@xxxxxxxxx> writes: > >> and the answer is git ls-files --with-tree=<treeish> | grep <regex> . >> 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html