Skip to contentSkip to conversation

builtin: fix typos

PATCH In review Andrew Kreimer 3 participants 3 messages Sep 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builtin: fix typos

Fix typos in comments.

---
 builtin/help.c         | 2 +-
 builtin/ls-files.c     | 2 +-
 builtin/name-rev.c     | 2 +-
 builtin/receive-pack.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
builtin/help.c +1 -1
index 9c4cfe11d9..a509241a80 100644
@@ -542,7 +542,7 @@ static void open_html(const char *path)
 
 static void show_html_page(const char *page)
 {
-	struct strbuf page_path; /* it leaks but we exec bellow */
+	struct strbuf page_path; /* it leaks but we exec below */
 
 	get_html_page_path(&page_path, page);
 
builtin/ls-files.c +1 -1
index 6aaba08e30..e016b0415d 100644
@@ -507,7 +507,7 @@ static int get_common_prefix_len(const char *common_prefix)
 	common_prefix_len = strlen(common_prefix);
 
 	/*
-	 * If the prefix has a trailing slash, strip it so that submodules wont
+	 * If the prefix has a trailing slash, strip it so that submodules won't
 	 * be pruned from the index.
 	 */
 	if (common_prefix[common_prefix_len - 1] == '/')
builtin/name-rev.c +1 -1
index 7f08c38629..765eb20a93 100644
@@ -65,7 +65,7 @@ static void set_commit_cutoff(struct commit *commit)
 static void adjust_cutoff_timestamp_for_slop(void)
 {
 	if (cutoff) {
-		/* check for undeflow */
+		/* check for underflow */
 		if (cutoff > TIME_MIN + CUTOFF_DATE_SLOP)
 			cutoff = cutoff - CUTOFF_DATE_SLOP;
 		else
builtin/receive-pack.c +1 -1
index c4b766c613..5bbbebbd8b 100644
@@ -1325,7 +1325,7 @@ static int update_shallow_ref(struct command *cmd, struct shallow_info *si)
 }
 
 /*
- * NEEDSWORK: we should consolidate various implementions of "are we
+ * NEEDSWORK: we should consolidate various implementations of "are we
  * on an unborn branch?" test into one, and make the unified one more
  * robust. !get_sha1() based check used here and elsewhere would not
  * allow us to tell an unborn branch from corrupt ref, for example.
Signature · 1 line
2.39.5
#1 lore raw
Quoted 9 lines · Andrew Kreimer

Fix typos in comments.

---
 builtin/help.c         | 2 +-
 builtin/ls-files.c     | 2 +-
 builtin/name-rev.c     | 2 +-
 builtin/receive-pack.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

All look fine. Thanks.

#2 lore raw
Quoted 11 lines · Eric Sunshine
Quoted 9 lines · Andrew Kreimer

Fix typos in comments.

---
 builtin/help.c         | 2 +-
 builtin/ls-files.c     | 2 +-
 builtin/name-rev.c     | 2 +-
 builtin/receive-pack.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Quoted 1 line

All look fine. Thanks.

Thanks, both.