An API to interact with a git repository without a worktree