threads / patch / 22667

patchRemove hyphen from "git-command" in two error messages

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

## tl;dr

3 messages between Feb 15, 2010 and Feb 16, 2010. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Pete Harlan· Feb 15, 2010, 23:25 UTC · lore
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(-)
Show changes to 2 files +2 −2

git.c, help.c

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
Pete Harlan· Feb 15, 2010, 23:33 UTC · re: Pete Harlan · lore

Re: [PATCH/Fixed Wrap] Remove hyphen from "git-command" in two error messages

Signed-off-by: Pete Harlan <pgit@pcharlan.com>
---
Replacement for previous patch; Thunderbird shouldn't wrap this time.
Sorry for the bother.
 git.c  |    2 +-
 help.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Show changes to 2 files +2 −2

git.c, help.c

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

← back to recent threads