git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] bisect: fix singular/plural grammar nit

From
David Ripton <dripton@ripton.net>
Date
Jan 19, 2010, 15:13 UTC
Message-ID
<20100119151333.GA9660@vidar.dreamhost.com>

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
Next: Junio C Hamano
Message 1 of 2 in “bisect: fix singular/plural grammar nit”
  1. bisect: fix singular/plural grammar nitDavid Ripton, Jan 19, 2010
  2. Junio C HamanoJan 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.