+2

Enable 'compare with working tree' when multiple files are selected

jaap.weide 1 month ago • updated by Chris Kline 4 days ago 4

This feature is available in the log windows under (Shift+F4), but only for a single selected file.

Regular compare (F4) works on a range of files.  This feature should too.

Currently, this opens a dialog where you can select the file to compare with (the file might have been moved or renamed in the mean-time). Should we really open this dialog for each selected file?

No, it should only be brought up once.  And the selection should apply to all the others after that.

As a matter of fact I find that I always want the 'Compare Before' option.

Not sure when I would use the 'Compare After' option.

But that may be because I have not yet used SmartGit long enough.



Compare Before and Compare After depends on what compare you want to trigger - think about some reverted code or a commit from a different branch.


So I understand that you don't care about being able to edit the local path.

As a matter of fact I find that I always want the 'Compare Before' option.
Not sure when I would use the 'Compare After' option.

Interesting. When comparing a file from a commit (or stash) in the log to my working tree, I almost always do the opposite -- I "Compare After" the committed file changes versus the working tree, because I want to diff the state of the file after the commit versus the current working tree state.


I agree however that if you select multiple files, the dialog should open just once and the choice should apply to all the files selected