Skip to content

Commit e0453cd

Browse files
ralfthgitster
authored andcommitted
merge-recursive: separate message for common ancestors
The function "merge_recursive" prints the count of common ancestors as "found %u common ancestor(s):". We should use a singular and a plural form of this message to help translators. Signed-off-by: Ralf Thielow <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9a7365c commit e0453cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

merge-recursive.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,10 @@ int merge_recursive(struct merge_options *o,
19151915
}
19161916

19171917
if (show(o, 5)) {
1918-
output(o, 5, _("found %u common ancestor(s):"), commit_list_count(ca));
1918+
unsigned cnt = commit_list_count(ca);
1919+
1920+
output(o, 5, Q_("found %u common ancestor:",
1921+
"found %u common ancestors:", cnt), cnt);
19191922
for (iter = ca; iter; iter = iter->next)
19201923
output_commit_title(o, iter->item);
19211924
}

0 commit comments

Comments
 (0)