]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/commit-graph.c: remove subcommand-less usage string
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 25 Oct 2019 16:49:09 +0000 (18:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 03:24:17 +0000 (12:24 +0900)
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 $?
  129

Remove this line from the usage string.

The synopsis in the manpage doesn't contain this line.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-graph.c

index 38027b83d9d8329a1dc2e47b236a985e4ce71060..04ff71fea6cc4b952607dc3974baba27ec3a09c2 100644 (file)
@@ -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]"),
        N_("git commit-graph write [--object-dir <objdir>] [--append|--split] [--reachable|--stdin-packs|--stdin-commits] <split options>"),