]> git.99rst.org Git - git.git/commit
reflog: refactor cmd_reflog() to "if" branches
authorÆvar Arnfjörð Bjarmason <redacted>
Thu, 17 Mar 2022 18:08:34 +0000 (19:08 +0100)
committerJunio C Hamano <redacted>
Fri, 18 Mar 2022 01:03:11 +0000 (18:03 -0700)
commit5f9b64a6c26552af2c3c57ea37f308537dc5bee9
tree13a8e46c1a37d74ee05cd6feaf42f0c27620986f
parent03df6cb833a21e924b02af58df76d93a8e0d9648
reflog: refactor cmd_reflog() to "if" branches

Refactor the "if" branches in cmd_reflog() to use "else if" instead,
and remove the whitespace between them.

As with 92f480909f7 (multi-pack-index: refactor "goto usage" pattern,
2021-08-23) this makes this code more consistent with how
builtin/{bundle,stash,commit-graph,multi-pack-index}.c look and
behave. Their top-level commands are all similar sub-command routing
functions.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/reflog.c
git clone https://git.99rst.org/PROJECT