From: Junio C Hamano Date: Fri, 16 Jan 2009 01:52:56 GMT Subject: Re: fatal: git grep: cannot generate relative filenames containing '..' Message-ID: <7vr634ow3r.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20090115222905.8157.qmail@science.horizon.com> "George Spelvin" writes: > Could someone fix this some day? As far as I know you are the first to ask for this, so perhaps people never considered this was something to "fix".... > "git grep ../include" > is something I find myself wanting quite frequently, and it's a fresh > annoyance every time I type it to discover that it still doesn't work. > > While you're at it, an option to search the entire git tree rather than > the current subdirectory would also be useful. I was thinking about > a flag like -r (for "root"),... ... but $ grep -r foo .. will look for foo anywhere below one level up from your current directory, and I think it may be a reasonable enhancement to teach: $ git grep foo .. to do the same. Patches welcome ;-). By the way, congratulations for getting a name. Can we fix one entry in our .mailmap file?