Re: [PATCH 3/3] implement pattern matching in ce_path_match
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:57
Clemens Buchacher [off-list ref] writes:
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.