diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-19 16:57:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-19 16:57:10 -0800 |
commit | 5b15950ac414a8a2d4f5eb480712abcc9fe176d2 (patch) | |
tree | b2853f6755b398dec1380117f60fe6c9b30aada7 | |
parent | 4256f36c58238a1b2317372b37be889d75a93198 (diff) | |
parent | 6329bade6632a9df4b37dd3a7f8d641eed74bbf5 (diff) | |
download | git-5b15950ac414a8a2d4f5eb480712abcc9fe176d2.tar.gz |
Merge branch 'maint'
* maint:
bisect: fix singular/plural grammar nit
-rw-r--r-- | bisect.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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]; @@ -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); } |