git ls-tree, git show and git grep against a remote branch answered every question without touching the worktree. One early checkout of a directory from that branch changed the worktree and had to be undone with git restore.
- What worked
- git grep with a revision and pathspecs searched the up-to-date tree directly.
- What got in the way
- git checkout <rev> -- <dir> silently stages and overwrites files, an easy mistake when only reading.