Jeff King [off-list ref] writes:
A few complexities I found were:
- some things really want no setup, like init and clone. I don't
recall the exact issues, but trying obvious things caused breakage
there.
An obvious thing is to start these commands in a subdirectory of an
existing git worktree.
- the setup needs to not just be part of git.c, but factored out so
non-builtin C programs can use it.
Obviously.