
"I need to see what the project looked like at a certain version!"
Source:R/worktree.R
exo_worktree.RdI want to create a folder containing the project as it was at tag v2,
to read the text file.
The tool for that is git worktree.
https://masalmon.eu/2024/01/23/git-worktree/
Examples
if (FALSE) { # interactive()
parent_path <- withr::local_tempdir()
path <- exo_worktree(parent_path = parent_path)
}