* [PATCH] bisect: fix singular/plural grammar nit
@ 2010-01-19 15:13 David Ripton
2010-01-19 20:53 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: David Ripton @ 2010-01-19 15:13 UTC (permalink / raw)
To: git, gitster
Remove the trailing 's' from "revisions" and "steps" when there is
only one.
Signed-off-by: David Ripton <dripton@ripton.net>
---
bisect.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/bisect.c b/bisect.c
index f1a1f84..af280b4 100644
--- a/bisect.c
+++ b/bisect.c
@@ -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);
}
--
David Ripton dripton@ripton.net
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bisect: fix singular/plural grammar nit
2010-01-19 15:13 [PATCH] bisect: fix singular/plural grammar nit David Ripton
@ 2010-01-19 20:53 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2010-01-19 20:53 UTC (permalink / raw)
To: David Ripton; +Cc: git
David Ripton <dripton@ripton.net> writes:
> Remove the trailing 's' from "revisions" and "steps" when there is
> only one.
Thanks; will apply to 'maint'.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-19 20:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 15:13 [PATCH] bisect: fix singular/plural grammar nit David Ripton
2010-01-19 20:53 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).