Merge branch 'rj/status-bisect-while-rebase'
"git status" is taught to show both the branch being bisected and being rebased when both are in effect at the same time. * rj/status-bisect-while-rebase: status: fix branch shown when not only bisecting
This commit is contained in:
@ -395,9 +395,9 @@ int is_worktree_being_bisected(const struct worktree *wt,
|
||||
|
||||
memset(&state, 0, sizeof(state));
|
||||
found_bisect = wt_status_check_bisect(wt, &state) &&
|
||||
state.branch &&
|
||||
state.bisecting_from &&
|
||||
skip_prefix(target, "refs/heads/", &target) &&
|
||||
!strcmp(state.branch, target);
|
||||
!strcmp(state.bisecting_from, target);
|
||||
wt_status_state_free_buffers(&state);
|
||||
return found_bisect;
|
||||
}
|
||||
|
Reference in New Issue
Block a user