Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: git-diff on touched files: bug or feature?

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:43:25

Johannes Schindelin [off-list ref] writes:
quoted
The question remains: why should someone running git-diff get this,
and someone running git-status not get this?
Because git-status is an index-updating operation.  That's why.
That sounds like "it is this way because it is not the other way
around".

So, yes, git-status updates the index because it's an index-updating
operation, while git-diff does not update the index because it's a
non-index-updating operation.

Then, I'll rephrase my sentence as "*why* is git-status an
index-updating operation while git-diff is not". But you'll probably
find another way to avoid answering.

-- 
Matthieu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help