Re: git-apply does not work in a sub-directory of a Git repository
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 30, 2016, 17:13 UTC
- Message-ID
- <xmqqvb43ubvv.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8BtOR-0FNSP5cggAz=X3Vm-do_N4V-z7=tvW28p14FMkw@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> But your suggestion is good and I can't think of any better. We could > introduce pathspec as ftiler after "--", but it does not look elegant, > and it overlaps with --include/--exclude.
I was imagining that we would allow the magic pathspec syntax used in --include/--exclude command line option parameter. Nobody sane uses glob special characters in their pathnames and those that do deserve whatever breakage that comes to them.
> Perhaps we can start to warn people if --include is specified but has > no effect for a cycle or two, then we can do as you suggested?
I do not think I'd be against going in that direction.