Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: git grep: search whole tree by default?

From: Duy Nguyen <hidden>
Date: 2016-06-15 22:59:05

On Fri, Oct 25, 2013 at 11:37 AM, Jeff King [off-list ref] wrote:
On Thu, Oct 24, 2013 at 12:40:44PM -0700, Junio C Hamano wrote:
quoted
Jeff King [off-list ref] writes:
quoted
That would also provide people who do not like the change of default an
escape hatch to keep the current behavior. And I do not think scripted
use will be inconvenienced; they will already have to use "." or ":/" to
be explicit (if they care) since the behavior is changing.
There is a big difference between "scripted use will have an escape
hatch" and "scripted use will not be inconvenienced".
I think my communication may have been muddled in transit. What I meant
regarding inconvenienced was "not any more so than by simply changing
the behavior in the first place, since scripts already will need to
start becoming explicit due to the behavior change".

And for the "escape hatch", I did not mean for scripts. I actually meant
for users who do not like the extra typing and complain "stupid git, I
always want '.'; you used to do what I want and now you do not".
Such an escape hatch may be better done as an alias than a config key
(an alias is a config key anyway). I know it won't be easy to "add '.'
if no pathspecs are given", using shell script. But that's something
we could improve, hopefully. An option is we could just export
PATHSPEC_PREFER_* flags via a command line (like --literal-pathspecs).
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help