Skip to content

Commit f54bea4

Browse files
pcloudsgitster
authored andcommitted
remote.c: specify correct plural form in "commit diverge" message
We need to count both "ours" and "theirs" commits when selecting plural form for this message. Note that even though in this block, both ours and theirs must be positive (i.e. can't be in singular form), we still keep Q_(singular, plural) because languages other than English may have more than one plural form. Reported-by: Alfonsogonzalez, Ernesto (GE Digital) <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e465796 commit f54bea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ int format_tracking_info(struct branch *branch, struct strbuf *sb)
21562156
"Your branch and '%s' have diverged,\n"
21572157
"and have %d and %d different commits each, "
21582158
"respectively.\n",
2159-
theirs),
2159+
ours + theirs),
21602160
base, ours, theirs);
21612161
if (advice_status_hints)
21622162
strbuf_addf(sb,

0 commit comments

Comments
 (0)