git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git grep: search whole tree by default?

From
David Aguilar <davvid@gmail.com>
Date
Oct 24, 2013, 02:15 UTC
Message-ID
<CAJDDKr7BkZjhjPF==v6PWVA4_-HM2cOaj+xusgkLKf7OocEpaw@mail.gmail.com>
In-Reply-To
<xmqqk3h3pywt.fsf@gitster.dls.corp.google.com>
On Wed, Oct 23, 2013 at 12:31 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 26 quoted lines
> Jed Brown <jed@59A2.org> writes:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>> Jed Brown <jed@59A2.org> writes:
>>>
>>>> Junio C Hamano <gitster@pobox.com> writes:
>>>>> I suspect that it would be too late for 2.0 we want to do sometime
>>>>> early next year, though.
>>>>
>>>> How would you manage transition from the current behavior?  Warning
>>>> people to explicitly use "." or ":/" during some interim period sounds
>>>> worse than just switching the default behavior.
>>>
>>> "How would I"?
>>>
>>> You're asking that question only because you omitted too much from
>>> the quote ;-)
>>
>> I meant that if the proposed migration plan were to be "just change it
>> and people will learn" (because anything more gradual would actually be
>> worse for users) then is it really too late for Git-2.0?
>
> I do not know it that is even a workable plan, but I need to sleep
> on it and then hear opinion from others, but in general, if anybody
> needs to ask if it is too late, then it already is.
Making grep tree-wide would be very welcome here.

IMO Git-2.0 *feels* like a good time to change the default since there's relatively little downside to doing so, but "early next year" is not very long to wait either; it doesn't seem like there's a strong reason to rush this in.

-- 
David
Previous: Junio C HamanoNext: Matthieu Moy
Message 8 of 14 in “git grep: search whole tree by default?”
  1. Piotr KrukowieckiOct 23, 2013
  2. Matthieu MoyOct 23, 2013
  3. Junio C HamanoOct 23, 2013
  4. Jed BrownOct 23, 2013
  5. Junio C HamanoOct 23, 2013
  6. Jed BrownOct 23, 2013
  7. Junio C HamanoOct 23, 2013
  8. David AguilarOct 24, 2013
  9. Matthieu MoyOct 23, 2013
  10. Jeff KingOct 24, 2013
  11. Junio C HamanoOct 24, 2013
  12. David AguilarOct 25, 2013
  13. Jeff KingOct 25, 2013
  14. Duy NguyenOct 25, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.