D7146: [RFC] grep: add config option to grep PWD by default
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Wed Oct 23 02:50:56 UTC 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.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7146/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7146
To: pulkit, #hg-reviewers
Cc: mharbison72, durin42, jeffpc, JordiGH, mercurial-devel
More information about the Mercurial-devel
mailing list