| 706 | } |
| 707 | |
| 708 | void repair_worktrees(worktree_repair_fn fn, void *cb_data, int use_relative_paths) |
| 709 | { |
| 710 | struct worktree **worktrees = get_worktrees_internal(1); |
| 711 | struct worktree **wt = worktrees + 1; /* +1 skips main worktree */ |
| 712 | |
| 713 | if (!fn) |
| 714 | fn = repair_noop; |
| 715 | for (; *wt; wt++) |
| 716 | repair_gitfile(*wt, fn, cb_data, use_relative_paths); |
| 717 | free_worktrees(worktrees); |
| 718 | } |
| 719 | |
| 720 | void repair_worktree_after_gitdir_move(struct worktree *wt, const char *old_path) |
| 721 | { |
no test coverage detected