D7146: [RFC] grep: add config option to grep PWD by default
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Tue Oct 22 22:50:56 EDT 2019
mharbison72 added a comment.
I lean towards searching the whole repo by default, for the reasons that Jordi listed, especially consistency with other hg commands.
I almost never `hg grep` from the command line, and typically search in TortoiseHg instead. But there, I always want it to search everything by default, unless I start passing `-X`. (I realize a change here doesn't mean it has to change in thg, just relaying my typical usage and expectations.)
I do think a config option to swap the default is reasonable, if for no other reason than $PWD is chosen for the default, and I can still get the behavior I'd expect.
CHANGES SINCE LAST ACTION
To: pulkit, #hg-reviewers
Cc: mharbison72, durin42, jeffpc, JordiGH, mercurial-devel
More information about the Mercurial-devel