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

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

From
BGBrian Gerst <bgerst@didntduck.org>
Date
Sep 2, 2005, 12:17 UTC
Message-ID
<431842C5.6060606@didntduck.org>
In-Reply-To
<7v3bonkecp.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 29 quoted lines
> Catalin Marinas <catalin.marinas@gmail.com> writes:
> 
> 
>>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.
It should have some character, so the output is parseable by other scripts.
>  * unmerged should be "U" as you say.

I agree that the tags should be renamed. I just didn't want to break other scripts which depend on those tags.

--
					Brian Gerst
Previous: Junio C Hamano
Message 4 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.