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

[PATCH] ls-files: fix black space in error message

From
ZheNing Hu via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 11, 2022, 14:03 UTC
Message-ID
<pull.1350.git.1662904997760.gitgitgadget@gmail.com>
From: ZheNing Hu <adlternative@gmail.com>

ce74de9(ls-files: introduce "--format" option) miss a space between two words incorrectly, it leads to wrong i10n messages. So fix it by adding a space at the end of the error message.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
---
    ls-files: fix black space in error message
    
    This patch want fix a little typo error in builtin/ls-files.c, which
    pointed out by Jiang Xin in [1].
    
    [1]:
    https://lore.kernel.org/git/CANYiYbFGSfg+iFV1ovhCSxW0YQSpemKUN-sS+F0BHee7KD5arA@mail.gmail.com/.
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1350%2Fadlternative%2Fzh%2Fls-file-format-error-mesage-fix-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1350/adlternative/zh/ls-file-format-error-mesage-fix-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1350
 builtin/ls-files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index 779dc18e59d..4cf8a236483 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -257,7 +257,7 @@ static size_t expand_show_index(struct strbuf *sb, const char *start,
 
 	end = strchr(start + 1, ')');
 	if (!end)
-		die(_("bad ls-files format: element '%s'"
+		die(_("bad ls-files format: element '%s' "
 		      "does not end in ')'"), start);
 
 	len = end - start + 1;

base-commit: dd3f6c4cae7e3b15ce984dce8593ff7569650e24
-- 
gitgitgadget
Next: Junio C Hamano
Message 1 of 3 in “ls-files: fix black space in error message”
  1. ls-files: fix black space in error messageZheNing Hu via GitGitGadget, Sep 11, 2022
  2. Junio C HamanoSep 12, 2022
  3. ZheNing HuSep 17, 2022

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.