Re: [PATCH] git-diff: Add --staged as a synonym for --cached.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Sunday, November 2, 2008 - 11:30 am

Björn Steinbrink <B.Steinbrink@gmx.de> writes:


I think the earlier two are the same thing.  The only difference between
them is that in the first one, the definition of your "work on" happens to
be a read-only operation.  Am I mistaken?


'ls-files' is primarily about the index contents and all else is a fluff
;-)

You could say --show-stage-too if you wanted to, but the command is a
plumbing to begin with, so perhaps if we can identify the cases where
people need to use the command and enhance some Porcelain (likely
candidate is 'status' or perhaps 'status --short') to give the information
people use ls-files for, we hopefully wouldn't have to change ls-files
itself at all.

The only case I use ls-files these days when I am _using_ git (as opposed
to developing/debugging git) is "git ls-files -u" to get the list of still
unmerged paths during a conflicted merge.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] git-diff: Add --staged as a synonym for --cached., David Symonds, (Wed Oct 29, 9:15 am)
Re: [PATCH] git-diff: Add --staged as a synonym for --cached., Johannes Schindelin, (Wed Oct 29, 10:06 am)
Re: [PATCH] git-diff: Add --staged as a synonym for --cached., Junio C Hamano, (Sun Nov 2, 11:30 am)
Re: [PATCH] git-diff: Add --staged as a synonym for --cached., Johannes Schindelin, (Wed Nov 12, 4:10 am)