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

[PATCH] merge-recursive: separate message for common ancestors

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Aug 5, 2012, 17:56 UTC
Message-ID
<1344189398-27127-1-git-send-email-ralf.thielow@gmail.com>

The function "merge_recursive" prints the count of common ancestors as "found %u common ancestor(s):". At least for better translation, we should use a singular and a plural form of this message.

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
 merge-recursive.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index 8903a73..39b2e16 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -1915,7 +1915,10 @@ int merge_recursive(struct merge_options *o,
 	}
 
 	if (show(o, 5)) {
-		output(o, 5, _("found %u common ancestor(s):"), commit_list_count(ca));
+		unsigned cnt = commit_list_count(ca);
+
+		output(o, 5, Q_("found %u common ancestor:",
+				"found %u common ancestors:", cnt), cnt);
 		for (iter = ca; iter; iter = iter->next)
 			output_commit_title(o, iter->item);
 	}
-- 
1.7.12.rc1
Next: Junio C Hamano
Message 1 of 7 in “merge-recursive: separate message for common ancestors”
  1. merge-recursive: separate message for common ancestorsRalf Thielow, Aug 5, 2012
  2. Junio C HamanoAug 5, 2012
  3. Ralf ThielowAug 5, 2012
  4. Junio C HamanoAug 5, 2012
  5. Jiang XinAug 6, 2012
  6. Jiang XinAug 6, 2012
  7. l10n: de.po: translate one new messageRalf Thielow, Aug 6, 2012

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.