Merge branch 'jk/cherry-pick-revert-status' into next
During a cherry-pick or revert session that works on multiple commits, "git status" did not give correct information, which has been corrected. * jk/cherry-pick-revert-status: fix cherry-pick/revert status when doing multiple commits
This commit is contained in:
@ -1793,10 +1793,10 @@ void wt_status_get_state(struct repository *r,
|
||||
oidcpy(&state->revert_head_oid, &oid);
|
||||
}
|
||||
if (!sequencer_get_last_command(r, &action)) {
|
||||
if (action == REPLAY_PICK) {
|
||||
if (action == REPLAY_PICK && !state->cherry_pick_in_progress) {
|
||||
state->cherry_pick_in_progress = 1;
|
||||
oidcpy(&state->cherry_pick_head_oid, null_oid());
|
||||
} else {
|
||||
} else if (action == REPLAY_REVERT && !state->revert_in_progress) {
|
||||
state->revert_in_progress = 1;
|
||||
oidcpy(&state->revert_head_oid, null_oid());
|
||||
}
|
||||
|
Reference in New Issue
Block a user