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

Re: [PATCH] add: allow users to silence Git 2.0 warnings about "add -u"

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2013, 06:23 UTC
Message-ID
<7vtxp4sw8e.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1361513224-34550-1-git-send-email-davvid@gmail.com>
David Aguilar <davvid@gmail.com> writes:
> When "git add -u" is invoked from a subdirectory it prints a
> loud warning message about an upcoming Git 2.0 behavior change.
> Some users do not care to be warned.  Accomodate them.
I do not think this is what we discussed to do.

It was very much deliberate to make the way to "squelch the warning" not a "set once and *forget*", aka configuration variable, but a simple-to-type extra command line argument i.e. "git add -u .", that you will *always* type to train your fingers to explicitly say what you mean, so that the default switch will not matter to existing users.

Previous: David AguilarNext: David Aguilar
Message 2 of 8 in “add: allow users to silence Git 2.0 warnings about "add -u"”
  1. add: allow users to silence Git 2.0 warnings about "add -u"David Aguilar, Feb 22, 2013
  2. Junio C HamanoFeb 22, 2013
  3. David AguilarFeb 22, 2013
  4. Matthieu MoyFeb 22, 2013
  5. Junio C HamanoFeb 22, 2013
  6. David AguilarFeb 23, 2013
  7. Junio C HamanoFeb 23, 2013
  8. Junio C HamanoFeb 22, 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.