Skip to content

Commit 86ae43d

Browse files
Denton-Lgitster
authored andcommitted
status: mention --skip for revert and cherry-pick
When reverting or cherry-picking, one of the options we can pass the sequencer is `--skip`. However, unlike rebasing, `--skip` is not mentioned as a possible option in the status message. Mention it so that users are more aware of their options. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b1b16bb commit 86ae43d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

t/t7512-status-help.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ test_expect_success 'status when cherry-picking before resolving conflicts' '
733733
On branch cherry_branch
734734
You are currently cherry-picking commit $TO_CHERRY_PICK.
735735
(fix conflicts and run "git cherry-pick --continue")
736+
(use "git cherry-pick --skip" to skip this patch)
736737
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
737738
738739
Unmerged paths:
@@ -757,6 +758,7 @@ test_expect_success 'status when cherry-picking after resolving conflicts' '
757758
On branch cherry_branch
758759
You are currently cherry-picking commit $TO_CHERRY_PICK.
759760
(all conflicts fixed: run "git cherry-pick --continue")
761+
(use "git cherry-pick --skip" to skip this patch)
760762
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
761763
762764
Changes to be committed:
@@ -778,6 +780,7 @@ test_expect_success 'status when cherry-picking after committing conflict resolu
778780
On branch cherry_branch
779781
Cherry-pick currently in progress.
780782
(run "git cherry-pick --continue" to continue)
783+
(use "git cherry-pick --skip" to skip this patch)
781784
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
782785
783786
nothing to commit (use -u to show untracked files)
@@ -835,6 +838,7 @@ test_expect_success 'status while reverting commit (conflicts)' '
835838
On branch master
836839
You are currently reverting commit $TO_REVERT.
837840
(fix conflicts and run "git revert --continue")
841+
(use "git revert --skip" to skip this patch)
838842
(use "git revert --abort" to cancel the revert operation)
839843
840844
Unmerged paths:
@@ -855,6 +859,7 @@ test_expect_success 'status while reverting commit (conflicts resolved)' '
855859
On branch master
856860
You are currently reverting commit $TO_REVERT.
857861
(all conflicts fixed: run "git revert --continue")
862+
(use "git revert --skip" to skip this patch)
858863
(use "git revert --abort" to cancel the revert operation)
859864
860865
Changes to be committed:
@@ -887,6 +892,7 @@ test_expect_success 'status while reverting after committing conflict resolution
887892
On branch master
888893
Revert currently in progress.
889894
(run "git revert --continue" to continue)
895+
(use "git revert --skip" to skip this patch)
890896
(use "git revert --abort" to cancel the revert operation)
891897
892898
nothing to commit (use -u to show untracked files)

wt-status.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,8 @@ static void show_cherry_pick_in_progress(struct wt_status *s,
14331433
else
14341434
status_printf_ln(s, color,
14351435
_(" (all conflicts fixed: run \"git cherry-pick --continue\")"));
1436+
status_printf_ln(s, color,
1437+
_(" (use \"git cherry-pick --skip\" to skip this patch)"));
14361438
status_printf_ln(s, color,
14371439
_(" (use \"git cherry-pick --abort\" to cancel the cherry-pick operation)"));
14381440
}
@@ -1460,6 +1462,8 @@ static void show_revert_in_progress(struct wt_status *s,
14601462
else
14611463
status_printf_ln(s, color,
14621464
_(" (all conflicts fixed: run \"git revert --continue\")"));
1465+
status_printf_ln(s, color,
1466+
_(" (use \"git revert --skip\" to skip this patch)"));
14631467
status_printf_ln(s, color,
14641468
_(" (use \"git revert --abort\" to cancel the revert operation)"));
14651469
}

0 commit comments

Comments
 (0)