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

Re: What's cooking in git.git (Mar 2011, #02; Sun, 20)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 21, 2011, 14:28 UTC
Message-ID
<7vfwqgtunj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110321111643.GE16334@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 21 quoted lines
>> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>> 
>> > Junio C Hamano <gitster@pobox.com> writes:
>> >
>> >> Unfortunately
>> >> we do not have a good way to let people who have already heard
>> >> about the transition to squelch it yet.
>> >
>> > How about an advice.addWithoutPath config variable to disable it?
>> 
>> I don't think it is worth it; I'd rather see :/ magic implemented earlier.
>> 
>> Another possibility is to error out on "git add -u" without pathspec in a
>> subdirectory as an error in 1.8.0, and then make it full-tree in 1.8.X in
>> a distant future, but that wouldn't be as pleasant.
>
> I thought we cared about giving fans of the current behavior a way to
> keep it (without having to use additional syntax). Script-writers
> already need to use "./" to be portable to old versions of git, so it's
> not hurting them (unless you want to count N years into the future, when
> we can discount such old versions).

So you would rather have "addu.relativetocwd" configuration variable that will warn when unset but the behaviour defaults to true for now, and later flip to false?

I'd be in favor of that (the variable name can be painted in any color). The patch series was an illustration of the logical conclusion of Duy's patch that punted on the migration path, and if it showed it would not be pleasant, it served its purpose ;-).

Previous: Jeff KingNext: Junio C Hamano
Message 8 of 15 in “What's cooking in git.git (Mar 2011, #02; Sun, 20)”
  1. Junio C HamanoMar 20, 2011
  2. Jens LehmannMar 20, 2011
  3. Junio C HamanoMar 20, 2011
  4. Junio C HamanoMar 20, 2011
  5. Matthieu MoyMar 20, 2011
  6. Junio C HamanoMar 21, 2011
  7. Jeff KingMar 21, 2011
  8. Junio C HamanoMar 21, 2011
  9. add: make "add -u/-A" update full tree without pathspecJunio C Hamano, Mar 23, 2011
  10. add: make "add -u/-A" update full tree without pathspec (step 2)Junio C Hamano, Mar 23, 2011
  11. add: make "add -u/-A" update full tree without pathspec (step 3)Junio C Hamano, Mar 23, 2011
  12. Nguyen Thai Ngoc DuyMar 23, 2011
  13. Junio C HamanoMar 23, 2011
  14. Ævar Arnfjörð BjarmasonMar 22, 2011
  15. Junio C HamanoMar 22, 2011

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.