]> git.99rst.org Git - git.git/commit
notes: simplify default operation mode arguments check
authorSZEDER Gábor <redacted>
Mon, 5 Sep 2022 18:50:06 +0000 (20:50 +0200)
committerJunio C Hamano <redacted>
Wed, 7 Sep 2022 19:06:12 +0000 (12:06 -0700)
commit1c7c25aef12918b9305df19142ab5755297274a6
treeecda28fb384fb53c0499f56d38a1e28f33cfd03e
parent45bec2ead294b5f3565903995d3503ba31b8ad4a
notes: simplify default operation mode arguments check

'git notes' has a default operation mode, but when invoked without a
subcommand it doesn't accept any arguments (although the 'list'
subcommand implementing the default operation mode does accept
arguments).  The condition checking this ended up a bit awkward, so
let's make it clearer.

Signed-off-by: SZEDER Gábor <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/notes.c
git clone https://git.99rst.org/PROJECT