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

Function is_current_worktree_ref

refs.c:941–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941static int is_current_worktree_ref(const char *ref) {
942 return is_root_ref_syntax(ref) || is_per_worktree_ref(ref);
943}
944
945enum ref_worktree_type parse_worktree_ref(const char *maybe_worktree_ref,
946 const char **worktree_name, int *worktree_name_length,

Callers 1

parse_worktree_refFunction · 0.85

Calls 2

is_root_ref_syntaxFunction · 0.85
is_per_worktree_refFunction · 0.85

Tested by

no test coverage detected