diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2022-08-19 18:04:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 11:13:15 -0700 |
commit | 54ef7676bab9292c041e6ada73bb48a4c261c71b (patch) | |
tree | 3632ce686a88c1f241b8a17ec36f7368d0d6e981 /builtin/commit-graph.c | |
parent | bf0a6b65fcdb919ed27d0b77f0adfd65d84ea691 (diff) |
builtin/notes.c: let parse-options parse subcommands
'git notes' parses its subcommands with a long list of if-else if
statements. parse-options has just learned to parse subcommands, so
let's use that facility instead, with the benefits of shorter code,
handling unknown subcommands, and listing subcommands for Bash
completion. Make sure that the default operation mode doesn't accept
any arguments.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions