D7146: [RFC] grep: add config option to grep PWD by default

JordiGH (Jordi GutiƩrrez Hermoso) phabricator at mercurial-scm.org
Tue Oct 22 12:10:50 EDT 2019


JordiGH added a comment.


  I will repeat my position as stated on IRC. I am against this change because,
  
  1. it's inconsistent with shelve, commit, addremove, status, diff and all other operations that by default work on the entire repo
  2. it's difficult to go from this proposed default to grepping the entire repo
  3. it's easy and natural for the user to add this dot themselves
  4. there's no permanent consequence if the user accidentally greps the whole repo; only a little bit of extra output and some CPU wasted

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: JordiGH, mercurial-devel


More information about the Mercurial-devel mailing list