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

[PATCH] fix a translation error in diff-tree

From
Alangi Derick <alangiderick@gmail.com>
Date
May 4, 2015, 11:22 UTC
Message-ID
<55476653.e33ac20a.753d.ffffc3cc@mx.google.com>
Signed-off-by: Alangi Derick <alangiderick@gmail.com>
---
 builtin/diff-tree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/diff-tree.c b/builtin/diff-tree.c
index 12b683d..602b5f9 100644
--- a/builtin/diff-tree.c
+++ b/builtin/diff-tree.c
@@ -45,7 +45,7 @@ static int stdin_diff_trees(struct tree *tree1, char *line, int len)
 	unsigned char sha1[20];
 	struct tree *tree2;
 	if (len != 82 || !isspace(line[40]) || get_sha1_hex(line + 41, sha1))
-		return error("Need exactly two trees, separated by a space");
+		return error(_("Need exactly two trees, separated by a space"));
 	tree2 = lookup_tree(sha1);
 	if (!tree2 || parse_tree(tree2))
 		return -1;
@@ -75,7 +75,7 @@ static int diff_tree_stdin(char *line)
 		return stdin_diff_commit((struct commit *)obj, line, len);
 	if (obj->type == OBJ_TREE)
 		return stdin_diff_trees((struct tree *)obj, line, len);
-	error("Object %s is a %s, not a commit or tree",
+	error(_("Object %s is a %s, not a commit or tree"),
 	      sha1_to_hex(sha1), typename(obj->type));
 	return -1;
 }
-- 
2.4.0.5.g7a7787e.dirty
Next: Junio C Hamano
Message 1 of 2 in “fix a translation error in diff-tree”
  1. fix a translation error in diff-treeAlangi Derick, May 4, 2015
  2. Junio C HamanoMay 4, 2015

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.