From: Johannes Schindelin Date: Mon, 10 Oct 2016 17:25:14 GMT Subject: [PATCH v3 09/25] sequencer: avoid completely different messages for different actions Message-ID: <1b7c940b274e1ac0887ea310ee4d629b8b6b200f.1476120229.git.johannes.schindelin@gmx.de> In-Reply-To: Signed-off-by: Johannes Schindelin --- sequencer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sequencer.c b/sequencer.c index cee7e50..443a238 100644 --- a/sequencer.c +++ b/sequencer.c @@ -224,11 +224,8 @@ static int error_dirty_index(struct replay_opts *opts) if (read_cache_unmerged()) return error_resolve_conflict(action_name(opts)); - /* Different translation strings for cherry-pick and revert */ - if (opts->action == REPLAY_PICK) - error(_("Your local changes would be overwritten by cherry-pick.")); - else - error(_("Your local changes would be overwritten by revert.")); + error(_("Your local changes would be overwritten by %s."), + action_name(opts)); if (advice_commit_before_merge) advise(_("Commit your changes or stash them to proceed.")); -- 2.10.0.windows.1.325.ge6089c1