mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
rebase: avoid using the comma operator unnecessarily
The comma operator is a somewhat obscure C feature that is often used by mistake and can even cause unintentional code flow. Better use a semicolon instead. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
f569065fc4
commit
38c696d66b
@@ -1843,7 +1843,7 @@ int cmd_rebase(int argc,
|
||||
strbuf_addf(&msg, "%s (start): checkout %s",
|
||||
options.reflog_action, options.onto_name);
|
||||
ropts.oid = &options.onto->object.oid;
|
||||
ropts.orig_head = &options.orig_head->object.oid,
|
||||
ropts.orig_head = &options.orig_head->object.oid;
|
||||
ropts.flags = RESET_HEAD_DETACH | RESET_ORIG_HEAD |
|
||||
RESET_HEAD_RUN_POST_CHECKOUT_HOOK;
|
||||
ropts.head_msg = msg.buf;
|
||||
|
||||
Reference in New Issue
Block a user