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

Re: [PATCH 1.8.0] add: make "add -u" update full tree without pathspec

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Feb 27, 2011, 16:52 UTC
Message-ID
<AANLkTi=BwTHRWcUu26VLWAhFupmuJpu8fvOF98--HJ5f@mail.gmail.com>
In-Reply-To
<7vei6t4uwa.fsf@alter.siamese.dyndns.org>
On Sun, Feb 27, 2011 at 5:46 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Perhaps in this order:
>
> Step 1, as soon as possible:
>
>  * Introduce "add.make_update_global" configuration variable, and toggle
>   the above variable when it is explicitly given; also record the fact
>   that you actually saw this variable in the config parser regardless of
>   the value that is given;

Ermm.. compat.make_update_global, with the intent that the config will be dropped in future (1.9.0 maybe)?

Show 6 quoted lines
>  * Document the configuration variable as a new feature, without
>   indicating that that will be the new default in the future, but
>   strongly recommending that existing scripts should be updated and new
>   scripts should be written the variable in mind---namely, their use of
>   "add -u" should use "." if they are relying on the current "limit to
>   cwd" behaviour.

There's a problem. I use git on many machines. Some will have this config enabled, some will not (yet). Perhaps a third option, which will print something when "git add -u" is issued as a reminder? I don't know. What I need is to notice old behavior of "git add -u" before it's too late.

> Step 4, 3 cycles after 1.8.0:
>
>  * Drop the warning.
Step 5 (1.9.0 or later):
 * Drop compat.make_update_global.
-- 
Duy
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 12 of 25 in “add: make "add -u" update full tree without pathspec”
  1. add: make "add -u" update full tree without pathspecNguyễn Thái Ngọc Duy, Feb 7, 2011
  2. Junio C HamanoFeb 7, 2011
  3. Nguyen Thai Ngoc DuyFeb 7, 2011
  4. Miles BaderFeb 7, 2011
  5. Joshua JuranFeb 9, 2011
  6. Matthieu MoyFeb 7, 2011
  7. Junio C HamanoFeb 27, 2011
  8. Matthieu MoyFeb 27, 2011
  9. Nguyen Thai Ngoc DuyFeb 27, 2011
  10. Sverre RabbelierFeb 27, 2011
  11. Nguyen Thai Ngoc DuyFeb 27, 2011
  12. Nguyen Thai Ngoc DuyFeb 27, 2011
  13. Junio C HamanoFeb 27, 2011
  14. Nguyen Thai Ngoc DuyFeb 28, 2011
  15. Junio C HamanoFeb 28, 2011
  16. Nguyen Thai Ngoc DuyMar 1, 2011
  17. Junio C HamanoMar 1, 2011
  18. Nguyen Thai Ngoc DuyMar 1, 2011
  19. Matthieu MoyMar 1, 2011
  20. Junio C HamanoMar 1, 2011
  21. Matthieu MoyMar 1, 2011
  22. Jakub NarebskiMar 1, 2011
  23. Jeff KingMar 1, 2011
  24. Junio C HamanoMar 1, 2011
  25. Matthieu MoyMar 1, 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.