Skip to content

Commit 3e4ebe3

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a574867 commit 3e4ebe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-receive-pack.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-receive-pack - Receive what is pushed into the repository
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git-receive-pack' <git-dir>
12+
'git receive-pack' <git-dir>
1313

1414
DESCRIPTION
1515
-----------

builtin/credential-cache--daemon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
267267
const char *socket_path;
268268
int ignore_sighup = 0;
269269
static const char *usage[] = {
270-
"git-credential-cache--daemon [--debug] <socket-path>",
270+
"git credential-cache--daemon [--debug] <socket-path>",
271271
NULL
272272
};
273273
int debug = 0;
@@ -305,7 +305,7 @@ int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
305305
int cmd_credential_cache_daemon(int argc, const char **argv, const char *prefix)
306306
{
307307
const char * const usage[] = {
308-
"git credential-cache--daemon [options] <action>",
308+
"git credential-cache--daemon [--debug] <socket-path>",
309309
"",
310310
"credential-cache--daemon is disabled in this build of Git",
311311
NULL

0 commit comments

Comments
 (0)