Skip to content

Commit 6329bad

Browse files
driptongitster
authored andcommitted
bisect: fix singular/plural grammar nit
Remove the trailing 's' from "revisions" and "steps" when there is only one. Signed-off-by: David Ripton <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f9752d commit 6329bad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bisect.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ int bisect_next_all(const char *prefix)
956956
{
957957
struct rev_info revs;
958958
struct commit_list *tried;
959-
int reaches = 0, all = 0, nr;
959+
int reaches = 0, all = 0, nr, steps;
960960
const unsigned char *bisect_rev;
961961
char bisect_rev_hex[41];
962962

@@ -998,8 +998,10 @@ int bisect_next_all(const char *prefix)
998998
}
999999

10001000
nr = all - reaches - 1;
1001-
printf("Bisecting: %d revisions left to test after this "
1002-
"(roughly %d steps)\n", nr, estimate_bisect_steps(all));
1001+
steps = estimate_bisect_steps(all);
1002+
printf("Bisecting: %d revision%s left to test after this "
1003+
"(roughly %d step%s)\n", nr, (nr == 1 ? "" : "s"),
1004+
steps, (steps == 1 ? "" : "s"));
10031005

10041006
return bisect_checkout(bisect_rev_hex);
10051007
}

0 commit comments

Comments
 (0)