builtin/commit-graph.c: remove subcommand-less usage string
PATCH 1/1 builtin/commit-graph.c: remove subcommand-less usage string
The first line in 'git commit-graph's usage string indicates that this command can be invoked without specifying a subcommand. However, this is not the case:
$ git commit-graph
usage: git commit-graph [--object-dir <objdir>]
or: git commit-graph read [--object-dir <objdir>]
[...]
$ echo $?
129Remove this line from the usage string.
The synopsis in the manpage doesn't contain this line.
Signed-off-by SZEDER Gábor <[email protected]>
--- builtin/commit-graph.c | 1 - 1 file changed, 1 deletion(-)
builtin/commit-graph.c +0 -1
@@ -8,7 +8,6 @@#include "object-store.h" static char const *const builtin_commit_graph_usage[] = { -N_ ("git commit-graph [--object-dir <objdir>]" ),N_ ("git commit-graph read [--object-dir <objdir>]" ),N_ ("git commit-graph verify [--object-dir <objdir>] [--shallow] [--[no-]progress]" ),N_ ("git commit-graph write [--object-dir <objdir>] [--append|--split] [--reachable|--stdin-packs|--stdin-commits] [--[no-]progress] <split options>" ),
Signature · 1 line
2.24.0.rc1.539.g061db24550
Quoted 25 lines · SZEDER Gábor
The first line in 'git commit-graph's usage string indicates that this command can be invoked without specifying a subcommand. However, this is not the case:
$ git commit-graph usage: git commit-graph [--object-dir <objdir>] or: git commit-graph read [--object-dir <objdir>] [...] $ echo $? 129Remove this line from the usage string.
The synopsis in the manpage doesn't contain this line.
Signed-off-by SZEDER Gábor <[email protected]>--- builtin/commit-graph.c | 1 - 1 file changed, 1 deletion(-)builtin/commit-graph.c +0
-0
builtin/commit-graph.c line 13
Quoted 7 lines
builtin/commit-graph.c +0
-1@@ -8,7 +8,6 @@#include "object-store.h" static char const *const builtin_commit_graph_usage[] = { -N_ ("git commit-graph [--object-dir <objdir>]" ),N_ ("git commit-graph read [--object-dir <objdir>]" ),N_ ("git commit-graph verify [--object-dir <objdir>] [--shallow] [--[no-]progress]" ),N_ ("git commit-graph write [--object-dir <objdir>] [--append|--split] [--reachable|--stdin-packs|--stdin-commits] [--[no-]progress] <split options>" ),
Good catch! Thanks for cleaning this up.
-Stolee