summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-01-02 15:26:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-09 22:57:29 (GMT)
commit637666c82258a2a11424791ad83b3a43cae101a4 (patch)
treef0b5bce3026634e5a16f6c8a16d3dbc8a956e8b3 /sequencer.c
parente05806da9ec4aff8adfed142ab2a2b3b02e33c8c (diff)
downloadgit-637666c82258a2a11424791ad83b3a43cae101a4.zip
git-637666c82258a2a11424791ad83b3a43cae101a4.tar.gz
git-637666c82258a2a11424791ad83b3a43cae101a4.tar.bz2
sequencer: avoid unnecessary curly braces
This was noticed while addressing Junio Hamano's concern that some "else" operators were on separate lines than the preceding closing brace. 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sequencer.c b/sequencer.c
index 9adb7bb..23793db 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -632,9 +632,8 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
}
discard_cache();
- if (!commit->parents) {
+ if (!commit->parents)
parent = NULL;
- }
else if (commit->parents->next) {
/* Reverting or cherry-picking a merge commit */
int cnt;