git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Remove hyphen from "git-command" in two error messages

From
PHPete Harlan <pgit@pcharlan.com>
Date
Feb 15, 2010, 23:25 UTC
Message-ID
<4B79D7F2.80207@pcharlan.com>
Signed-off-by: Pete Harlan <pgit@pcharlan.com>
---
The hyphen in
  git: 'foo' is not a git-command. See 'git --help'.
looks like an anachronism.  Patch generated against "next".
 git.c  |    2 +-
 help.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git.c b/git.c
index b3e23f1..90c6daf 100644
--- a/git.c
+++ b/git.c
@@ -527,7 +527,7 @@ int main(int argc, const char **argv)
 			break;
 		if (was_alias) {
 			fprintf(stderr, "Expansion of alias '%s' failed; "
-				"'%s' is not a git-command\n",
+				"'%s' is not a git command\n",
 				cmd, argv[0]);
 			exit(1);
 		}
diff --git a/help.c b/help.c
index 9da97d7..7f4928e 100644
--- a/help.c
+++ b/help.c
@@ -350,7 +350,7 @@ const char *help_unknown_cmd(const char *cmd)
 		return assumed;
 	}

-	fprintf(stderr, "git: '%s' is not a git-command. See 'git --help'.\n",
cmd);
+	fprintf(stderr, "git: '%s' is not a git command. See 'git --help'.\n",
cmd);

 	if (SIMILAR_ENOUGH(best_similarity)) {
 		fprintf(stderr, "\nDid you mean %s?\n",
-- 
1.7.0
Next: Pete Harlan
Message 1 of 3 in “Remove hyphen from "git-command" in two error messages”
  1. Remove hyphen from "git-command" in two error messagesPete Harlan, Feb 15, 2010
  2. Pete HarlanFeb 15, 2010
  3. Junio C HamanoFeb 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.