sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
272 stars 14 forks source link

Add equivalent of `git checkout fa1afe1 -- .` #1894

Open vthemelis opened 2 months ago

vthemelis commented 2 months ago

Problem description

Sometimes, I want to restore the working tree files in a different commit (fa1afe1) without changing HEAD

Preferred solution

When right-clicking a commit add a 'Restore this commit's files' that effectively executes git checkout fa1afe1 -- ..

Alternatives

Instead of this specific case you could even add a 'Checkout commit for path spec' menu where a user can specify the path spec they would like.