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

[RFC] "needs update" considered harmful

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2008, 07:48 UTC
Message-ID
<7v1w1pdmi8.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7v3am5f20f.fsf@gitster.siamese.dyndns.org>

The previous two variants both aim to reword the somewhat unpopular "needs update" message to easier "locally modified".

"Politically correct" thing to do would be to keep the output from the update-index (plumbing) intact and update only output from "reset" and "add --refresh -v" which are Porcelain. This has smaller chance of breaking people's existing scripts, but some people may find the two messages that say the same thing inconsistent.

Rewording to "locally modified" even at the plumbing level is a simpler patch, keeps the API to refresh_index() intact, and probably is a better approach in the longer term, especially if we can ignore people's existing scripts.

Previous: Junio C HamanoNext: Jay Soffian
Message 4 of 12 in “refresh-index: fix bitmask assignment”
  1. refresh-index: fix bitmask assignmentJunio C Hamano, Jul 20, 2008
  2. Junio C HamanoJul 20, 2008
  3. Junio C HamanoJul 20, 2008
  4. [RFC] "needs update" considered harmfulJunio C Hamano, Jul 20, 2008
  5. Jay SoffianJul 21, 2008
  6. [RFC variant 1 of 2] "needs update" considered harmfulJunio C Hamano, Jul 20, 2008
  7. [RFC variant 2 of 2] "needs update" considered harmfulJunio C Hamano, Jul 20, 2008
  8. Petr BaudisJul 20, 2008
  9. Johannes SchindelinJul 20, 2008
  10. Junio C HamanoJul 20, 2008
  11. Jay SoffianJul 21, 2008
  12. André Goddard RosaJul 20, 2008

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.