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

Re: [PATCH/RFC] gitk: refresh index before checking for local changes

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:48:34

A Large Angry SCM wrote:

[context: should gitk run ‘gitk update-index --refresh -q’ transparently?]
NAK - gitk should not modify a repository and/or working dir unless
_explicitly_ prompted to by the user.

If you want a new _non-default_ option setting for gitk, that fine also.
I have some sympathy for this point of view.

Does the same principle apply to ‘git diff’?  If not, why not?

It should be possible to suppress files with no changes from the
display without refreshing the index (or not to suppress them and to
still refresh the index, nor that matter; the issues are orthogonal),
but it would be nice to come up with a clear rationale first.

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