From: Jay Soffian Date: Mon, 28 Feb 2011 15:27:06 GMT Subject: Re: git-grep to operate across who repository and not just CWD? Message-ID: In-Reply-To: <4D6B6A8B.20709@drmicha.warpmail.net> On Mon, Feb 28, 2011 at 4:27 AM, Michael J Gruber wrote: > git grep -- $(git rev-parse --show-cdup) > > is the best we have right now. I think we're still looking for a good > way to denote "root of repo" (like "." for cwd). > > Also, we're thinking of changing a few defaults (to repo-wide), but "git > grep" is meant to stay close to ordinary grep. I had the crazy thought that if git had a --cdup option, then this would work with any command you wanted to run from the top: git --cdup grep ... Maybe that's the best way to expose "from the top please" generically? j.