Mercurial extension to invoke git grep over directory contents
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.rst
hggitgrep.py

README.rst

Motivation

Mercurial seems to be missing a grep command. A command which invokes grep over files under version control. Since git-grep is pretty good, let's use it.

Installation

Clone this repo, and put the following in ~/.hgrc:

[extensions]
hgrep = ...path-to-repo/hggitgrep.py

Usage

hg gitgrep <pattern>