* status letters consistency in log and ls-files
@ 2008-09-26 18:28 Leo Razoumov
2008-09-26 22:45 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Leo Razoumov @ 2008-09-26 18:28 UTC (permalink / raw)
To: Git Mailing List
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--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: status letters consistency in log and ls-files
2008-09-26 18:28 status letters consistency in log and ls-files Leo Razoumov
@ 2008-09-26 22:45 ` Jeff King
[not found] ` <ee2a733e0809261624y72dcfb8fw7910feb2542f501c@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2008-09-26 22:45 UTC (permalink / raw)
To: Leo Razoumov; +Cc: Git Mailing List
On Fri, Sep 26, 2008 at 02:28:50PM -0400, Leo Razoumov wrote:
> 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?
I think this is rooted in historical reasons. Unfortunately, I don't
think it is possible to reconcile the two outputs at this point, as we
would be breaking any scripts which use the tools.
Out of curiosity, is there a script you are writing or some workflow you
have where you see the output of both? Or did you just notice this while
exploring git?
I ask because there may be a way to alter your workflow to always use
one tool.
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-27 3:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26 18:28 status letters consistency in log and ls-files Leo Razoumov
2008-09-26 22:45 ` Jeff King
[not found] ` <ee2a733e0809261624y72dcfb8fw7910feb2542f501c@mail.gmail.com>
[not found] ` <20080927002949.GA25586@coredump.intra.peff.net>
2008-09-27 3:20 ` Leo Razoumov
2008-09-27 3:30 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).