worktree.c
18.2 KB
-
repository: introduce new function to iterate over all worktrees · 2fcb4f28
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.
Patrick Steinhardt committed