MCPcopy Create free account
hub / github.com/git/git / wt_status_check_bisect

Function wt_status_check_bisect

wt-status.c:1775–1789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1773}
1774
1775int wt_status_check_bisect(const struct worktree *wt,
1776 struct wt_status_state *state)
1777{
1778 struct stat st;
1779
1780 if (!wt)
1781 BUG("wt_status_check_bisect() called with NULL worktree");
1782
1783 if (!stat(worktree_git_path(wt, "BISECT_LOG"), &st)) {
1784 state->bisect_in_progress = 1;
1785 state->bisecting_from = get_branch(wt, "BISECT_START");
1786 return 1;
1787 }
1788 return 0;
1789}
1790
1791static void wt_status_check_sparse_checkout(struct repository *r,
1792 struct wt_status_state *state)

Callers 3

wt_status_get_stateFunction · 0.85

Calls 3

worktree_git_pathFunction · 0.85
get_branchFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected