Re: [PATCH 3/3] implement pattern matching in ce_path_match
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 14, 2009, 22:27 UTC
- Message-ID
- <7vvdshzfpk.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20090114192341.GA26703@localhost>
Clemens Buchacher <drizzd@aon.at> writes:
Show 5 quoted lines
> I think we could at least add an option to disable globbing. Then we can > also disable the above check conditioned on that. If we allowed globbing > pattern for following renames wouldn't that result in following the first > file (or last in history) to match the pattern, which is potentially > confusing?
Yeah, I agree that would be a reasonable thing to do.
In places we read paths from the index or from the work tree and add them as pathspec elements---you would want to mark them as non-globbing, too. Which probably means that "is it Ok to glob this" setting has to be per pathspec array elements.