Skip to content

parse-options: minor cleanups for handling subcommands

SZEDER Gábor git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5t0040-parse-options: remove leftover debuggingt/t0040-parse-options.sh+0 -20 replies
2/5test-parse-options.c: don't use for loop initial declarationt/helper/test-parse-options.c+2 -10 replies
3/5test-parse-options.c: fix style of comparison with zerot/helper/test-parse-options.c+2 -20 replies
4/5notes: simplify default operation mode arguments checkbuiltin/notes.c+7 -40 replies
5/5notes, remote: show unknown subcommands between `'builtin/notes.c builtin/remote.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] parse-options: minor cleanups for handling subcommands

I still wanted to make a few minor cleanups after v2 of 'sg/parse-options-subcommand', but while I got distracted with some Coccinelle stuff that topic got merged to 'next', and it's now in 'master'. Oh, well.

So here are those cleanups on top of that topic (or on top of 'master').

The changes really are minor: the first four patches shouldn't alter behavior in any way, and even the last one touches only two error messages.

SZEDER Gábor (5):
t0040-parse-options: remove leftover debugging test-parse-options.c: don't use for loop initial declaration test-parse-options.c: fix style of comparison with zero
notes: simplify default operation mode arguments check notes, remote: show unknown subcommands between `'

 builtin/notes.c               | 11 +++++++----
 builtin/remote.c              |  2 +-
 t/helper/test-parse-options.c |  7 ++++---
 t/t0040-parse-options.sh      |  2 --
 4 files changed, 12 insertions(+), 10 deletions(-)
Signature · 1 line
2.37.3.989.g4c3dfb3304