Re: [PATCH] match_tree_entry(): a pathspec only matches at directory boundaries
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 2, 2009, 16:36 UTC
- Message-ID
- <alpine.LFD.2.00.0904020923180.4130@localhost.localdomain>
- In-Reply-To
- <7vwsa3llac.fsf_-_@gitster.siamese.dyndns.org>
On Wed, 1 Apr 2009, Junio C Hamano wrote:
Show 5 quoted lines
> > Previously the code did a simple prefix match, which means that a path in > a directory "frotz/" would have matched with pathspec "f". > > Signed-off-by: Junio C Hamano <gitster@pobox.com>
I have this suspicion that we should be able to write it more readably, but yes:
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
because the current code is clearly buggy.
Linus