builtin: fix typos

Fix typos in comments. Signed-off-by: Andrew Kreimer <algonell@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Andrew Kreimer committed Sep 24, 2024 at 16:09 UTC ed4d4f38373f774891123e995fc47333d5a048b6
4 files changed +4 -4
builtin/help.c
+1 -1
@@ -542,7 +542,7 @@ static void open_html(const char *path)
542
543 static void show_html_page(const char *page)
544 {
545 - struct strbuf page_path; /* it leaks but we exec bellow */
545 + struct strbuf page_path; /* it leaks but we exec below */
546
547 get_html_page_path(&page_path, page);
548
builtin/ls-files.c
+1 -1
@@ -507,7 +507,7 @@ static int get_common_prefix_len(const char *common_prefix)
507 common_prefix_len = strlen(common_prefix);
508
509 /*
510 - * If the prefix has a trailing slash, strip it so that submodules wont
510 + * If the prefix has a trailing slash, strip it so that submodules won't
511 * be pruned from the index.
512 */
513 if (common_prefix[common_prefix_len - 1] == '/')
builtin/name-rev.c
+1 -1
@@ -65,7 +65,7 @@ static void set_commit_cutoff(struct commit *commit)
65 static void adjust_cutoff_timestamp_for_slop(void)
66 {
67 if (cutoff) {
68 - /* check for undeflow */
68 + /* check for underflow */
69 if (cutoff > TIME_MIN + CUTOFF_DATE_SLOP)
70 cutoff = cutoff - CUTOFF_DATE_SLOP;
71 else
builtin/receive-pack.c
+1 -1
@@ -1325,7 +1325,7 @@ static int update_shallow_ref(struct command *cmd, struct shallow_info *si)
1325 }
1326
1327 /*
1328 - * NEEDSWORK: we should consolidate various implementions of "are we
1328 + * NEEDSWORK: we should consolidate various implementations of "are we
1329 * on an unborn branch?" test into one, and make the unified one more
1330 * robust. !get_sha1() based check used here and elsewhere would not
1331 * allow us to tell an unborn branch from corrupt ref, for example.