contrib: fix typos
Fix typos via codespell. Signed-off-by: Andrew Kreimer <algonell@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andrew Kreimer committed
Oct 10, 2024 at 18:11 UTC
f5dedddb753e5366168052cc9cbfec760bbeb3ee
3 files changed
+4
-4
contrib/completion/git-completion.bash
+2
-2
@@ -3296,7 +3296,7 @@ __gitcomp_directories ()
3296
# i.e. which are *already* part of their
3297
# sparse-checkout. Thus, normal file and directory
3298
# completion is always useless for "git
3299
- # sparse-checkout add" and is also probelmatic for
3299
+ # sparse-checkout add" and is also problematic for
3300
# "git sparse-checkout set" unless using it to
3301
# strictly narrow the checkout.
3302
COMPREPLY=( "" )
@@ -3698,7 +3698,7 @@ _git_worktree ()
3698
# Here we are not completing an --option, it's either the
3699
# path or a ref.
3700
case "$prev" in
3701
- -b|-B) # Complete refs for branch to be created/reseted.
3701
+ -b|-B) # Complete refs for branch to be created/reset.
3702
__git_complete_refs
3703
;;
3704
-*) # The previous word is an -o|--option without an
contrib/subtree/git-subtree.sh
+1
-1
@@ -946,7 +946,7 @@ cmd_split () {
946
rev=$(git rev-parse -q --verify "$1^{commit}") ||
947
die "fatal: '$1' does not refer to a commit"
948
else
949
- die "fatal: you must provide exactly one revision, and optionnally a repository. Got: '$*'"
949
+ die "fatal: you must provide exactly one revision, and optionally a repository. Got: '$*'"
950
fi
951
repository=""
952
if test "$#" = 2
contrib/subtree/t/t7900-subtree.sh
+1
-1
@@ -47,7 +47,7 @@ last_commit_subject () {
47
# pre-2.32.0 versions of 'git subtree' would write the hash of the tag
48
# (sub1 below), instead of the commit (sub1^{commit}) in the
49
# "git-subtree-split" trailer.
50
-# We immitate this behaviour below using a replace ref.
50
+# We imitate this behaviour below using a replace ref.
51
# This function creates 3 repositories:
52
# - $1
53
# - $1-sub (added as subtree "sub" in $1)