]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/notes.c
notes: simplify default operation mode arguments check
authorSZEDER Gábor <szeder.dev@gmail.com>
Mon, 5 Sep 2022 18:50:06 +0000 (20:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
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 <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c