Skip to content

Commit

Permalink
bisect: fix singular/plural grammar nit
Browse files Browse the repository at this point in the history
Remove the trailing 's' from "revisions" and "steps" when there is
only one.

Signed-off-by: David Ripton <dripton@ripton.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
David Ripton authored and Junio C Hamano committed Jan 19, 2010
1 parent 6f9752d commit 6329bad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bisect.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ int bisect_next_all(const char *prefix)
{
struct rev_info revs;
struct commit_list *tried;
int reaches = 0, all = 0, nr;
int reaches = 0, all = 0, nr, steps;
const unsigned char *bisect_rev;
char bisect_rev_hex[41];

Expand Down Expand Up @@ -998,8 +998,10 @@ int bisect_next_all(const char *prefix)
}

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

return bisect_checkout(bisect_rev_hex);
}
Expand Down

0 comments on commit 6329bad

Please sign in to comment.