I am using EAGLE CAD with git for revision control. EAGLE stores its files as xml. I have different board revisions and I tag them with annotated tags so I can check out the revision whenever I want to view it.
Most users will find that a diff will be sufficient to compare two commits, but it would be much more illuminating for me to be able to open two files with EAGLE to visually compare them.
I am aware that there is some software out there for this specific application, but I just want to know how to checkout two commits of the same file into the working directory.
git show commit:path/to/file >oldcopy_of_filenew-worktreescript which is too heavy-weight for this simple task).