]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc txt & -h consistency: use "git foo" form, not "git-foo"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 13 Oct 2022 15:39:17 +0000 (17:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2022 16:32:57 +0000 (09:32 -0700)
Use the "git cmd" form instead of "git-cmd" for both "git
receive-pack" and "git credential-cache--daemon".

For "git-receive-pack" we do have a binary with that name, even when
installed with SKIP_DASHED_BUILT_INS=YesPlease, but for the purposes
of the SYNOPSIS let's use the "git cmd" form like everywhere else. It
can be invoked like that (and our tests do so), the parts of our
documentation that explain when you need to use the dashed form do so,
and use it.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-receive-pack.txt
builtin/credential-cache--daemon.c

index 5c297db1a4b5f4f1da993e797ff221876fef38e6..65ff518ccff49ea65812b70e9e46fac75733b7e6 100644 (file)
@@ -9,7 +9,7 @@ git-receive-pack - Receive what is pushed into the repository
 SYNOPSIS
 --------
 [verse]
-'git-receive-pack' <git-dir>
+'git receive-pack' <git-dir>
 
 DESCRIPTION
 -----------
index d4eb0097d24d0a4c69592ea52db74baa4885a044..f3c89831d4a27fb5a2637433ffa724ff0b5e9656 100644 (file)
@@ -267,7 +267,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
        const char *socket_path;
        int ignore_sighup = 0;
        static const char *usage[] = {
-               "git-credential-cache--daemon [--debug] <socket-path>",
+               "git credential-cache--daemon [--debug] <socket-path>",
                NULL
        };
        int debug = 0;
@@ -305,7 +305,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
 int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
 {
        const char * const usage[] = {
-               "git credential-cache--daemon [options] <action>",
+               "git credential-cache--daemon [--debug] <socket-path>",
                "",
                "credential-cache--daemon is disabled in this build of Git",
                NULL