+3

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

jaap.weide 3 years ago updated by Thomas Singer 12 months ago 6

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


Missing this functionality is really frustrating. I use both the "before" and "after" options quite a bit (depends what I'm looking for/at), but I pretty much always want to apply the same answer to everything I selected, and if I don't, then I probably also don't want to multi-select, either. Even if the command rejected (or was disabled) when it needed a more complex answer than before or after commit, it would be a great improvement.

Our of curiosity, how much files do you want to open in the file compare? Do you use an internal or external file compare tool? Why is selecting one by one file not sufficient for you?