]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t: fix typos
authorAndrew Kreimer <algonell@gmail.com>
Thu, 24 Oct 2024 11:47:20 +0000 (14:47 +0300)
committerTaylor Blau <me@ttaylorr.com>
Thu, 24 Oct 2024 16:45:53 +0000 (12:45 -0400)
Fix typos and grammar in documentation, comments, etc.

Via codespell.

Reported-by: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
26 files changed:
t/t3431-rebase-fork-point.sh
t/t3504-cherry-pick-rerere.sh
t/t3920-crlf-messages.sh
t/t5303-pack-corruption-resilience.sh
t/t5324-split-commit-graph.sh
t/t5329-pack-objects-cruft.sh
t/t5411/test-0034-report-ft.sh
t/t5411/test-0035-report-ft--porcelain.sh
t/t5500-fetch-pack.sh
t/t5528-push-default.sh
t/t5531-deep-submodule-push.sh
t/t5558-clone-bundle-uri.sh
t/t6200-fmt-merge-msg.sh
t/t6300-for-each-ref.sh
t/t6302-for-each-ref-filter.sh
t/t6404-recursive-merge.sh
t/t6439-merge-co-error-msgs.sh
t/t7031-verify-tag-signed-ssh.sh
t/t7064-wtstatus-pv2.sh
t/t7413-submodule-is-active.sh
t/t7513-interpret-trailers.sh
t/t7527-builtin-fsmonitor.sh
t/t7601-merge-pull-config.sh
t/t7702-repack-cyclic-alternate.sh
t/t8009-blame-vs-topicbranches.sh
t/t9003-help-autocorrect.sh

index 0bb284d61dbfae3077c7408ba266ca596e61207d..7b9c135c6e2766ceff9d99e188ab92ab6a7cdc62 100755 (executable)
@@ -74,7 +74,7 @@ test_rebase 'G F C D B A' --onto D main
 test_rebase 'G F C B A' --keep-base refs/heads/main
 test_rebase 'G F C B A' --keep-base main
 
-test_expect_success 'git rebase --fork-point with ambigous refname' '
+test_expect_success 'git rebase --fork-point with ambiguous refname' '
        git checkout main &&
        git checkout -b one &&
        git checkout side &&
index 597c98e9c577532fed4f729070b67577575b8950..109016eba92ac8d296edfbaf28ecf9b1a4fc32f7 100755 (executable)
@@ -43,7 +43,7 @@ test_expect_success 'cherry-pick conflict with --rerere-autoupdate' '
        git reset --hard bar-dev
 '
 
-test_expect_success 'cherry-pick conflict repsects rerere.autoUpdate' '
+test_expect_success 'cherry-pick conflict respects rerere.autoUpdate' '
        test_config rerere.autoUpdate true &&
        test_must_fail git cherry-pick foo..bar-main &&
        test_cmp foo-expect foo &&
index 50ae222f08424e4b4ed22a82c066526a3da3659c..31877f00c77d81da8847164228a9ac58573a850d 100755 (executable)
@@ -82,7 +82,7 @@ test_crlf_subject_body_and_contents() {
 
 
 test_expect_success 'Setup refs with commit and tag messages using CRLF' '
-       test_commit inital &&
+       test_commit initial &&
        create_crlf_refs
 '
 
index e6a43ec9ae3c6df5d5f3537ed40e7b0185eee1dc..b634bfb66516fbd5dbdbe220e8469aa61d1c8d8e 100755 (executable)
@@ -15,7 +15,7 @@ TEST_PASSES_SANITIZE_LEAK=true
 # 1) blob_2 is a delta with blob_1 for base and blob_3 is a delta with blob2
 #    for base, such that blob_3 delta depth is 2;
 #
-# 2) the bulk of object data is uncompressible so the text part remains
+# 2) the bulk of object data is incompressible so the text part remains
 #    visible;
 #
 # 3) object header is always 2 bytes.
index 77e91547ea32433854f6ca3417749f7cfec4197b..1193726daad77f55df1f8247120a44fcb2ffa84a 100755 (executable)
@@ -203,7 +203,7 @@ then
        graph_git_behavior 'alternate: commit 13 vs 6' commits/13 origin/commits/6 "fork"
 fi
 
-test_expect_success 'test merge stragety constants' '
+test_expect_success 'test merge strategy constants' '
        git clone . merge-2 &&
        (
                cd merge-2 &&
index 445739d06c98d0a1eed6d890c1ed9f8c7f3bae2e..54a4a49997cb08191ae120b59dfe609e6fde0e39 100755 (executable)
@@ -690,7 +690,7 @@ test_expect_success 'cruft --local drops unreachable objects' '
        test_when_finished "rm -fr alternate repo" &&
 
        test_commit -C alternate base &&
-       # Pack all objects in alterate so that the cruft repack in "repo" sees
+       # Pack all objects in alternate so that the cruft repack in "repo" sees
        # the object it dropped due to `--local` as packed. Otherwise this
        # object would not appear packed anywhere (since it is not packed in
        # alternate and likewise not part of the cruft pack in the other repo
index 0e37535065345b9aa756441a6cd7d022a9cc6754..78d0b63876eaf5320afbc426b31325f8ba6e311e 100644 (file)
@@ -10,7 +10,7 @@ test_expect_success "setup proc-receive hook (ft, $PROTOCOL)" '
 # Refs of upstream : main(A)
 # Refs of workbench: main(A)  tags/v123
 # git push         :                       refs/for/main/topic(B)
-test_expect_success "proc-receive: fall throught, let receive-pack to execute ($PROTOCOL)" '
+test_expect_success "proc-receive: fall through, let receive-pack to execute ($PROTOCOL)" '
        git -C workbench push origin \
                $B:refs/for/main/topic \
                >out 2>&1 &&
index b9a05181f1ac7ac3fa122d98165d2f5d84334a4e..df5fc212be4081e04eea52e93c6dd4a89642b3a5 100644 (file)
@@ -10,7 +10,7 @@ test_expect_success "setup proc-receive hook (fall-through, $PROTOCOL/porcelain)
 # Refs of upstream : main(A)
 # Refs of workbench: main(A)  tags/v123
 # git push         :                       refs/for/main/topic(B)
-test_expect_success "proc-receive: fall throught, let receive-pack to execute ($PROTOCOL/porcelain)" '
+test_expect_success "proc-receive: fall through, let receive-pack to execute ($PROTOCOL/porcelain)" '
        git -C workbench push --porcelain origin \
                $B:refs/for/main/topic \
                >out 2>&1 &&
index 605f17240c191a0db573096c82638934a6ae0868..bd08187d1b5d05decb270e69f8d584fe93e9a615 100755 (executable)
@@ -418,7 +418,7 @@ test_expect_success 'in_vain not triggered before first ACK' '
        test_grep "remote: Total 3 " log
 '
 
-test_expect_success 'in_vain resetted upon ACK' '
+test_expect_success 'in_vain reset upon ACK' '
        test_when_finished rm -f log trace2 &&
        rm -rf myserver myclient &&
        git init myserver &&
index bc2bada34c62984c37d73e94b2b76f6959ca2c75..1305b1cc25418d509a19ba809aa39eb19660bb63 100755 (executable)
@@ -147,7 +147,7 @@ test_expect_success 'push from/to new branch fails with upstream and simple ' '
 #  - the default push succeeds
 #
 # A previous test expected this to fail, but for the wrong reasons:
-# it expected a fail becaause the branch is new and cannot be pushed, but
+# it expected to fail because the branch is new and cannot be pushed, but
 # in fact it was failing because of an ambiguous remote
 #
 test_expect_failure 'push from/to new branch fails with matching ' '
index 135823630a37c69bd17e0bc7ed8c1e94233dd653..dcfef67af4e8a16bddcb5f3aae663caedc0e9f90 100755 (executable)
@@ -204,7 +204,7 @@ test_expect_success 'push recurse-submodules last one wins on command line' '
                cd work/gar/bage &&
                >recurse-check-on-command-line-overriding-earlier-command-line &&
                git add recurse-check-on-command-line-overriding-earlier-command-line &&
-               git commit -m "Recurse on command-line overridiing earlier command-line junk"
+               git commit -m "Recurse on command-line overriding earlier command-line junk"
        ) &&
        (
                cd work &&
index cd05321e1764b557466d7057f538675162bccca8..3816ed5058d90118b4cbc700d65e97aa9c9987c0 100755 (executable)
@@ -945,7 +945,7 @@ test_expect_success 'creationToken heuristic with failed downloads (clone)' '
                --bundle-uri="$HTTPD_URL/bundle-list" \
                "$HTTPD_URL/smart/fetch.git" download-3 &&
 
-       # As long as we have continguous successful downloads,
+       # As long as we have contiguous successful downloads,
        # we _do_ set these configs.
        test_cmp_config -C download-3 "$HTTPD_URL/bundle-list" fetch.bundleuri &&
        test_cmp_config -C download-3 3 fetch.bundlecreationtoken &&
@@ -1189,7 +1189,7 @@ test_expect_success 'creationToken heuristic with failed downloads (fetch)' '
        GIT_TRACE2_EVENT="$(pwd)/trace-fetch-3.txt" \
                git -C fetch-3 fetch origin &&
 
-       # As long as we have continguous successful downloads,
+       # As long as we have contiguous successful downloads,
        # we _do_ set the maximum creation token.
        test_cmp_config -C fetch-3 6 fetch.bundlecreationtoken &&
 
index ac57b0e4ae37698f10cd53a612c8043c4f85acda..0a4388f343166b3b12d6614ed04cf6839e23da31 100755 (executable)
@@ -608,34 +608,34 @@ test_expect_success 'merge-msg with "merging" an annotated tag' '
 
        git checkout main^0 &&
        git commit --allow-empty -m "One step ahead" &&
-       git tag -a -m "An annotated one" annote HEAD &&
+       git tag -a -m "An annotated one" annotate HEAD &&
 
        git checkout main &&
-       git fetch . annote &&
+       git fetch . annotate &&
 
        git fmt-merge-msg <.git/FETCH_HEAD >actual &&
        {
                cat <<-\EOF
-               Merge tag '\''annote'\''
+               Merge tag '\''annotate'\''
 
                An annotated one
 
-               * tag '\''annote'\'':
+               * tag '\''annotate'\'':
                  One step ahead
                EOF
        } >expected &&
        test_cmp expected actual &&
 
        test_when_finished "git reset --hard" &&
-       annote=$(git rev-parse annote) &&
-       git merge --no-commit --no-ff $annote &&
+       annotate=$(git rev-parse annotate) &&
+       git merge --no-commit --no-ff $annotate &&
        {
                cat <<-EOF
-               Merge tag '\''$annote'\''
+               Merge tag '\''$annotate'\''
 
                An annotated one
 
-               * tag '\''$annote'\'':
+               * tag '\''$annotate'\'':
                  One step ahead
                EOF
        } >expected &&
index b3163629c557934309af2e2e153a0c16f35ecc94..c39d4e7e9ce4540661fe0d45e0c507640da788c5 100755 (executable)
@@ -770,7 +770,7 @@ test_expect_success 'describe:abbrev=... vs describe --abbrev=...' '
                        refs/heads/master >actual &&
                test_cmp expect actual &&
 
-               # Make sure the hash used is atleast 14 digits long
+               # Make sure the hash used is at least 14 digits long
                sed -e "s/^.*-g\([0-9a-f]*\)$/\1/" <actual >hexpart &&
                test 15 -le $(wc -c <hexpart) &&
 
index 7f44d3c3f22898369d87a3169cca75ab0f827622..a3e1258a4cbe0f5fc6f288575e41d0f028aa0557 100755 (executable)
@@ -14,7 +14,7 @@ test_expect_success 'setup some history and refs' '
        git checkout -b side &&
        test_commit four &&
        git tag -m "An annotated tag" annotated-tag &&
-       git tag -m "Annonated doubly" doubly-annotated-tag annotated-tag &&
+       git tag -m "Annotated doubly" doubly-annotated-tag annotated-tag &&
 
        # Note that these "signed" tags might not actually be signed.
        # Tests which care about the distinction should be marked
@@ -343,7 +343,7 @@ test_expect_success 'check `%(contents:lines=1)`' '
        side |four
        odd/spot |three
        annotated-tag |An annotated tag
-       doubly-annotated-tag |Annonated doubly
+       doubly-annotated-tag |Annotated doubly
        doubly-signed-tag |Signed doubly
        four |four
        one |one
@@ -379,7 +379,7 @@ test_expect_success 'check `%(contents:lines=99999)`' '
        side |four
        odd/spot |three
        annotated-tag |An annotated tag
-       doubly-annotated-tag |Annonated doubly
+       doubly-annotated-tag |Annotated doubly
        doubly-signed-tag |Signed doubly
        four |four
        one |one
index 36215518b6eb1a746ded0f9b475a7d3029b807a6..57169ca24b593d22b4ff42c540dcf1f20198f5a2 100755 (executable)
@@ -88,7 +88,7 @@ test_expect_success 'result contains a conflict' '
 '
 
 test_expect_success 'virtual trees were processed' '
-       # TODO: fragile test, relies on ambigious merge-base resolution
+       # TODO: fragile test, relies on ambiguous merge-base resolution
        git ls-files --stage >out &&
 
        cat >expect <<-EOF &&
index 0cbec57cdabc48b7cd952a6fbf5458391b44a645..a9804ae42f1d3c5735e245c524fe686008b65d6b 100755 (executable)
@@ -65,7 +65,7 @@ Please move or remove them before you merge.
 Aborting
 EOF
 
-test_expect_success 'untracked files or local changes ovewritten by merge' '
+test_expect_success 'untracked files or local changes overwritten by merge' '
        git add two &&
        git add three &&
        git add four &&
index 20913b371344264a6dc9c84b58c3b6de3b46e226..80359d48f7ca196f18afe74239ae61664e81e975 100755 (executable)
@@ -116,7 +116,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag succeeds with tag date
        ! grep "${GPGSSH_BAD_SIGNATURE}" actual
 '
 
-test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag failes with tag date outside of key validity' '
+test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'verify-tag fails with tag date outside of key validity' '
        test_config gpg.ssh.allowedSignersFile "${GPGSSH_ALLOWED_SIGNERS}" &&
        test_must_fail git verify-tag timeboxedinvalid-signed 2>actual &&
        ! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual
index 06c130122236aa8dea156b3450088a869f97db9f..2458e9d0ebaa1546575874f7f83df9aadf990803 100755 (executable)
@@ -77,7 +77,7 @@ test_expect_success 'before initial commit, things added (-z)' '
        test_cmp expect actual
 '
 
-test_expect_success 'make first commit, comfirm HEAD oid and branch' '
+test_expect_success 'make first commit, confirm HEAD oid and branch' '
        git commit -m initial &&
        H0=$(git rev-parse HEAD) &&
        cat >expect <<-EOF &&
index 887d181b72ec05ab68f619de3948d667179dcb68..b9c89b10198140deaaae467d016714bfbbd2d871 100755 (executable)
@@ -22,7 +22,7 @@ test_expect_success 'setup' '
        git -C super submodule add ../sub sub2 &&
 
        # Remove submodule.<name>.active entries in order to test in an
-       # environment where only URLs are present in the conifg
+       # environment where only URLs are present in the config
        git -C super config --unset submodule.sub1.active &&
        git -C super config --unset submodule.sub2.active &&
 
index 0f7d8938d984d9a2c560b4b8d491c10124a9c301..818a8dafbd29e57abb1f2475c8b3f2951b87a412 100755 (executable)
@@ -857,7 +857,7 @@ test_expect_success 'using "--where after" with "--no-where"' '
 # the hardcoded default (in WHERE_END) assuming the absence of .gitconfig).
 # Here, the "start" setting of trailer.where is respected, so the new "Acked-by"
 # and "Bug" trailers are placed at the beginning, and not at the end which is
-# the harcoded default.
+# the hardcoded default.
 test_expect_success 'using "--where after" with "--no-where" defaults to configuration' '
        test_config trailer.ack.key "Acked-by= " &&
        test_config trailer.bug.key "Bug #" &&
@@ -881,7 +881,7 @@ test_expect_success 'using "--where after" with "--no-where" defaults to configu
 # immediately after it. For the next trailer (Bug #42), we default to using the
 # hardcoded WHERE_END because we don't have any "trailer.where" or
 # "trailer.bug.where" configured.
-test_expect_success 'using "--no-where" defaults to harcoded default if nothing configured' '
+test_expect_success 'using "--no-where" defaults to hardcoded default if nothing configured' '
        test_config trailer.ack.key "Acked-by= " &&
        test_config trailer.bug.key "Bug #" &&
        test_config trailer.separators ":=#" &&
index 9b15baa02d3985091570eae903d55d62509f5e1e..409cd0cd121695ed6f90761df75eadf621611de5 100755 (executable)
@@ -765,7 +765,7 @@ done
 # by the FSMonitor response to skip those recursive calls.  That is,
 # even if FSMonitor says that the mtime of the submodule directory
 # hasn't changed and it could be implicitly marked valid, we must
-# not take that shortcut.  We need to force the recusion into the
+# not take that shortcut.  We need to force the recursion into the
 # submodule so that we get a summary of the status *within* the
 # submodule.
 
index 7fd8c086af3f16d2d1de1721fe10605258ee966a..c83298ba6830e0f067eb2061284321bdf7d5daa6 100755 (executable)
@@ -281,7 +281,7 @@ test_expect_success '--rebase overrides pull.ff unset' '
        test_does_rebase pull --rebase
 '
 
-# Group 4: --no-rebase heeds pull.ff=!only or explict --ff or --no-ff
+# Group 4: --no-rebase heeds pull.ff=!only or explicit --ff or --no-ff
 
 test_expect_success '--no-rebase works with --no-ff' '
        test_does_merge_when_ff_possible pull --no-rebase --no-ff
index f3cdb98eec26b8b2d8cd138d6740a77802f84ae4..d151d4f6036e92906ca887fa17d9ffcd8f89cc22 100755 (executable)
@@ -18,7 +18,7 @@ test_expect_success setup '
        echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
 '
 
-test_expect_success 're-packing repository with itsself as alternate' '
+test_expect_success 're-packing repository with itself as alternate' '
        git repack -adl &&
        git fsck
 '
index 30331713b950a5bb83af61f5e786325dd523801b..cc511084648abd5406cf53b067531c485544a41d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test_description='blaming trough history with topic branches'
+test_description='blaming through history with topic branches'
 
 TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
index 14a704d0a8c311ff776f65313178073e70b0a38f..3be063afab590673013295c26a92efba192955e3 100755 (executable)
@@ -65,7 +65,7 @@ test_expect_success 'autocorrect can be declined altogether' '
 test_expect_success 'autocorrect works in work tree created from bare repo' '
        git clone --bare . bare.git &&
        git -C bare.git worktree add ../worktree &&
-       git -C worktree -c help.autocorrect=immediate stauts
+       git -C worktree -c help.autocorrect=immediate status
 '
 
 test_done