| 522 | } |
| 523 | |
| 524 | const struct worktree *find_shared_symref(struct worktree **worktrees, |
| 525 | const char *symref, |
| 526 | const char *target) |
| 527 | { |
| 528 | |
| 529 | for (int i = 0; worktrees[i]; i++) |
| 530 | if (is_shared_symref(worktrees[i], symref, target)) |
| 531 | return worktrees[i]; |
| 532 | |
| 533 | return NULL; |
| 534 | } |
| 535 | |
| 536 | int submodule_uses_worktrees(const char *path) |
| 537 | { |
no test coverage detected