Re: git-grep to operate across who repository and not just CWD?
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 28, 2011, 15:27 UTC
- Message-ID
- <AANLkTimJWeZLJbPndTyE0EUW3R9EC=yV55jhHbpZnnJn@mail.gmail.com>
- In-Reply-To
- <4D6B6A8B.20709@drmicha.warpmail.net>
On Mon, Feb 28, 2011 at 4:27 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 7 quoted lines
> 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.