doc txt & -h consistency: use "git foo" form, not "git-foo"
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>
Ævar Arnfjörð Bjarmason committed
Oct 13, 2022 at 17:39 UTC
3e4ebe3a40a799ce0b19e29d2fe62a36a196469c
2 files changed
+3
-3
Documentation/git-receive-pack.txt
+1
-1
@@ -9,7 +9,7 @@ git-receive-pack - Receive what is pushed into the repository
9
SYNOPSIS
10
--------
11
[verse]
12
-'git-receive-pack' <git-dir>
12
+'git receive-pack' <git-dir>
13
14
DESCRIPTION
15
-----------
builtin/credential-cache--daemon.c
+2
-2
@@ -267,7 +267,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
267
const char *socket_path;
268
int ignore_sighup = 0;
269
static const char *usage[] = {
270
- "git-credential-cache--daemon [--debug] <socket-path>",
270
+ "git credential-cache--daemon [--debug] <socket-path>",
271
NULL
272
};
273
int debug = 0;
@@ -305,7 +305,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
305
int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
306
{
307
const char * const usage[] = {
308
- "git credential-cache--daemon [options] <action>",
308
+ "git credential-cache--daemon [--debug] <socket-path>",
309
"",
310
"credential-cache--daemon is disabled in this build of Git",
311
NULL