MCPcopy Index your code
hub / github.com/git/git / find_shared_symref

Function find_shared_symref

worktree.c:524–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524const 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
536int submodule_uses_worktrees(const char *path)
537{

Callers 2

updateFunction · 0.85
mergeFunction · 0.85

Calls 1

is_shared_symrefFunction · 0.85

Tested by

no test coverage detected