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

status letters consistency in log and ls-files

From
LRLeo Razoumov <slonik.az@gmail.com>
Date
Sep 26, 2008, 18:28 UTC
Message-ID
<ee2a733e0809261128h4c50d27bq3942bd1b3b66d3ee@mail.gmail.com>

Hi Everyone, I am new yo git and there are few things I find quite odd. For example,

command "git log --name-status" uses the following letters to indicate file's status A -- Added B -- have had their pairing Broken C -- Copied D -- Deleted M -- Modified R -- Renamed T -- Type changed (mode, time stamp) U -- Unmerged X -- Unknown

At the same time command "git ls-files -v" use different letters to indicate the same H -- cached M -- unmerged R -- removed/deleted C -- modified/changed K -- to be killed ? -- other

So, depending on which of the commands above are used status "R" could mean either Renamed or Removed, "M" is either Modified or unMerged, "C" is either Copied or Changed.

Is it possible to make it consistent across related commands?
--Leo--
Next: Jeff King
Message 1 of 4 in “status letters consistency in log and ls-files”
  1. Leo RazoumovSep 26, 2008
  2. Jeff KingSep 26, 2008
  3. Leo RazoumovSep 27, 2008
  4. Jeff KingSep 27, 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.