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:
4
branch.c
4
branch.c
@ -420,9 +420,9 @@ static void prepare_checked_out_branches(void)
|
||||
wt_status_state_free_buffers(&state);
|
||||
|
||||
if (wt_status_check_bisect(wt, &state) &&
|
||||
state.branch) {
|
||||
state.bisecting_from) {
|
||||
struct strbuf ref = STRBUF_INIT;
|
||||
strbuf_addf(&ref, "refs/heads/%s", state.branch);
|
||||
strbuf_addf(&ref, "refs/heads/%s", state.bisecting_from);
|
||||
old = strmap_put(¤t_checked_out_branches,
|
||||
ref.buf,
|
||||
xstrdup(wt->path));
|
||||
|
Reference in New Issue
Block a user