repository: introduce new function to iterate over all worktrees
Given a Git repository, it's non-trivial to iterate over all worktrees that are associated with it, including the "main" repository. This commit adds a new internal function `git_repository_foreach_worktree` that does this for us.
Showing
Please
register
or
sign in
to comment