| 751 | } |
| 752 | |
| 753 | void repair_worktrees_after_gitdir_move(const char *old_path) |
| 754 | { |
| 755 | struct worktree **worktrees = get_worktrees_internal(1); |
| 756 | struct worktree **wt = worktrees + 1; /* +1 skips main worktree */ |
| 757 | |
| 758 | for (; *wt; wt++) |
| 759 | repair_worktree_after_gitdir_move(*wt, old_path); |
| 760 | free_worktrees(worktrees); |
| 761 | } |
| 762 | |
| 763 | static int is_main_worktree_path(const char *path) |
| 764 | { |
no test coverage detected