Re: Relative ls-files
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 23, 2011, 14:14 UTC
- Message-ID
- <AANLkTi=OJ_o2WQ2W6d30HXQZrg7=W70+fZWrbQPrAs=s@mail.gmail.com>
- In-Reply-To
- <7v7hbqgc7g.fsf@alter.siamese.dyndns.org>
On Wed, Mar 23, 2011 at 9:09 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Martin Langhoff <martin.langhoff@gmail.com> 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