Re: [PATCH 10/21] tree_entry_interesting(): fix depth limit with overlapping pathspecs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 17, 2010, 20:02 UTC
- Message-ID
- <7vsjxwi2vz.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTi=4vnitj-U5M+V_ALVpAk0ncMG=09aAEqA=KD41@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 7 quoted lines
> 2010/12/17 Junio C Hamano <gitster@pobox.com>: >> One thing I am not clear is what it means to limit the recursion level >> when you have wildcards. > > Recursion level does not affect wildcards at all. That was original > design, a91f453 (grep: Add --max-depth option. - 2009-07-22). I think > current git-grep still follows that.
I know what the current code does, as I remember a91f453 essentially punted on coming up with a sane semantics. As this series under discussion is about coming up with a unified and sane pathspec handling across board, it would be a good opportunity to think about it again, this time without punting so fast.