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

Re: [PATCH] Show modified files in git-ls-files

From
Junio C Hamano <junkio@cox.net>
Date
Sep 2, 2005, 09:28 UTC
Message-ID
<7v3bonkecp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<tnxzmqvalie.fsf@arm.com>
Catalin Marinas <catalin.marinas@gmail.com> writes:
Show 10 quoted lines
> Brian Gerst <bgerst@didntduck.org> wrote:
>> Add -m/--modified to show files that have been modified wrt. the index.
>>
>> M was already taken so the tag for modifified files is C (changed).
>
> I think git-ls-files should be consistent with git-diff-cache where M
> means modified and U unmerged (but for the former, M is unmerged).
>
> StGIT currently uses C to report a merge conflict but I will probably
> change this since it means copied in git-diff-cache.

I think that is an excellent suggestion. It looks to me that the tag feature in ls-files needs serious renaming.

 * an option is called --deleted and the variable to control the
   output is show_deleted; the tag variable and string is
   removed and "R".  Probably the tag should be renamed to "D".
 * before "modified", tag_cached was OK, but probably "known to
   git" would have been a better name.  I'd vote for just a
   single space " " as the tag letter; if we want to use printing
   character, then a single dot ".".  Most of the things are
   "known to git" anyway so these are visually less
   distracting.
 * unmerged should be "U" as you say.
Previous: Catalin MarinasNext: Brian Gerst
Message 3 of 4 in “Show modified files in git-ls-files”
  1. Show modified files in git-ls-filesBrian Gerst, Sep 2, 2005
  2. Catalin MarinasSep 2, 2005
  3. Junio C HamanoSep 2, 2005
  4. Brian GerstSep 2, 2005

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.