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

[PATCH] rev-parse: fix mismatch quoting of separator in the message

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Sep 22, 2021, 11:17 UTC
Message-ID
<20210922111744.675326-1-bagasdotme@gmail.com>

There is a quoting mismatch quoting `--` separator in "no usage string given...." message (`' instead of ``). Fix it.

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 builtin/rev-parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c
index 22c4e1a4ff..a35dbad6c4 100644
--- a/builtin/rev-parse.c
+++ b/builtin/rev-parse.c
@@ -439,7 +439,7 @@ static int cmd_parseopt(int argc, const char **argv, const char *prefix)
 		ALLOC_GROW(usage, unb + 1, usz);
 		if (!strcmp("--", sb.buf)) {
 			if (unb < 1)
-				die(_("no usage string given before the `--' separator"));
+				die(_("no usage string given before the `--` separator"));
 			usage[unb] = NULL;
 			break;
 		}

base-commit: 99c99ed8259bf070cd8ae7b51a94904b7cf5c161
-- 
2.25.1
Next: Taylor Blau
Message 1 of 7 in “rev-parse: fix mismatch quoting of separator in the message”
  1. rev-parse: fix mismatch quoting of separator in the messageBagas Sanjaya, Sep 22, 2021
  2. Taylor BlauSep 22, 2021
  3. Junio C HamanoSep 22, 2021
  4. Taylor BlauSep 22, 2021
  5. Ævar Arnfjörð BjarmasonSep 22, 2021
  6. Taylor BlauSep 22, 2021
  7. Junio C HamanoSep 22, 2021

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.