Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Compare externally the directories of 2 arbitrary commits #2465

Open
seraphire opened this issue Mar 28, 2025 · 4 comments

Comments

@seraphire
Copy link

I found that Fork supports comparing the current commit to the local changes via the right click menu:

Image

I would like to request an extension to this feature to allow comparing 2 arbitrary commits. This could be comparing 2 commits in the list of commits or it could be comparing two different branches in the branch list.

Git-Extensions already supports the ability to compare the whole contents of the diff. For example:

"C:\Program Files\Git\bin\git.exe" difftool --gui --find-renames --find-copies --no-prompt --dir-diff "e6a713628258d6652fb552e3c0ad2d52babdb3e6" "0db4f0910aed0aac5376c9f155b041d9421e79cf"

In my case, this brings up beyond compare and shows me all the files that are different between these two commits.

The behavior to compare two commits is on the context menu for the commit list in Git-Extensions, seen here:

Image

I have to switch back to git extensions for this feature. Thank you.

@DanPristupov
Copy link
Contributor

Select any two commits (or branches) to compare them.

@seraphire
Copy link
Author

seraphire commented Mar 28, 2025

Exactly! Is it already in there and I'm just not seeing it?

Okay, I think I need to elaborate. I see if I select 2 commits, it shows in the bottom of the screen. I would like to be able to open this comparison externally.

@seraphire seraphire changed the title [Feature request] Compare 2 arbitrary commits [Feature request] Compare externally the directories of 2 arbitrary commits Mar 28, 2025
@DanPristupov
Copy link
Contributor

DanPristupov commented Mar 28, 2025

You can right click on any file and open it in an external diff tool.

If you want to open external diff for multiple files, then this is a duplicate #28, #113

@seraphire
Copy link
Author

seraphire commented Mar 28, 2025

This would indeed be a duplicate of #28, but not a duplicate of #113. #113 appears to be a request to run the comparison against multiple files, not triggering git's --dir-diff.

For what it's worth, I did search the open issue list and I saw references to #113, but not #28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants