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

Function is_worktree_being_rebased

worktree.c:459–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459int is_worktree_being_rebased(const struct worktree *wt,
460 const char *target)
461{
462 struct wt_status_state state;
463 int found_rebase;
464
465 memset(&state, 0, sizeof(state));
466 found_rebase = wt_status_check_rebase(wt, &state) &&
467 (state.rebase_in_progress ||
468 state.rebase_interactive_in_progress) &&
469 state.branch &&
470 skip_prefix(target, "refs/heads/", &target) &&
471 !strcmp(state.branch, target);
472 wt_status_state_free_buffers(&state);
473 return found_rebase;
474}
475
476int is_worktree_being_bisected(const struct worktree *wt,
477 const char *target)

Callers 2

is_shared_symrefFunction · 0.85

Calls 2

wt_status_check_rebaseFunction · 0.85

Tested by

no test coverage detected