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.