]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin: fix typos
authorAndrew Kreimer <algonell@gmail.com>
Tue, 24 Sep 2024 13:09:06 +0000 (16:09 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Sep 2024 17:54:39 +0000 (10:54 -0700)
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>
builtin/help.c
builtin/ls-files.c
builtin/name-rev.c
builtin/receive-pack.c

index 9c4cfe11d9e529abd2a60a3bdbdecb69bee92b49..a509241a80fc0c5f45b0d1c871875bc87eb6d008 100644 (file)
@@ -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);
 
index 6aaba08e3058f48067a08e860b5f55f3a1a68162..e016b0415d167e910f5b5b56ac8b06e6f49c130d 100644 (file)
@@ -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] == '/')
index 7f08c38629c989b1638ac973c9d676032be02b00..765eb20a9312e42eb5bdcec41526b3a9d6ea2393 100644 (file)
@@ -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
index c4b766c61377c9d20186e378e6bf8fd3698e65ad..5bbbebbd8bfa2dac0ca14bcd1b791da4ed301bfb 100644 (file)
@@ -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.