summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-12-22 23:55:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-27 20:33:38 (GMT)
commit5f8f927710a039ce3068ac55ca87354477a199b9 (patch)
tree544f773be3467aa4c41217b62a27a2be843bdc38 /sequencer.c
parentaee42e1f35ac85ef25ba81eb28e72d002f0649db (diff)
downloadgit-5f8f927710a039ce3068ac55ca87354477a199b9.zip
git-5f8f927710a039ce3068ac55ca87354477a199b9.tar.gz
git-5f8f927710a039ce3068ac55ca87354477a199b9.tar.bz2
sequencer: remove superfluous conditional
In a conditional block that is only reached when handling a TODO_REWORD (as seen even from a 3-line context), there is absolutely no need to nest another block under the identical condition. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sequencer.c b/sequencer.c
index 5ca9e93..e9fef58 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -1013,9 +1013,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
opts);
if (res || command != TODO_REWORD)
goto leave;
- flags |= EDIT_MSG | AMEND_MSG;
- if (command == TODO_REWORD)
- flags |= VERIFY_MSG;
+ flags |= EDIT_MSG | AMEND_MSG | VERIFY_MSG;
msg_file = NULL;
goto fast_forward_edit;
}