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

suggestion: git status = restored

From
NKNeal Kreitzinger <neal@rsss.com>
Date
Mar 25, 2011, 17:59 UTC
Message-ID
<imil67$oec$1@dough.gmane.org>

We deleted (git-rm) a file from the repo by mistake. Several commits later we restored it (git-checkout, git-commit). Git status shows "added" for this file. IMHO, it seems like git status should be "restored" or "unremoved", etc, for this file. Git detects renames and copies so it seems like it could detect restores.

v/r, Neal

Next: Jeff King
Message 1 of 6 in “suggestion: git status = restored”
  1. Neal KreitzingerMar 25, 2011
  2. Jeff KingMar 29, 2011
  3. Neal KreitzingerMar 29, 2011
  4. Junio C HamanoMar 29, 2011
  5. Matthieu MoyMar 29, 2011
  6. Jeff KingMar 29, 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.