Skip to content

Commit 7a40cf1

Browse files
newrengitster
authored andcommitted
Fix spelling errors in comments of testcases
Reported-by: Jens Schleusener <Jens.Schleusener@fossies.org> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 15beaaa commit 7a40cf1

14 files changed

+18
-18
lines changed

t/t0000-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ check_sub_test_lib_test () {
126126

127127
check_sub_test_lib_test_err () {
128128
name="$1" # stdin is the expected output from the test
129-
# expected error output is in descriptior 3
129+
# expected error output is in descriptor 3
130130
(
131131
cd "$name" &&
132132
sed -e 's/^> //' -e 's/Z$//' >expect.out &&

t/t0027-auto-crlf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ stats_ascii () {
215215
}
216216

217217

218-
# contruct the attr/ returned by git ls-files --eol
218+
# construct the attr/ returned by git ls-files --eol
219219
# Take none (=empty), one or two args
220220
# convert.c: eol=XX overrides text=auto
221221
attr_ascii () {

t/t0500-progress-display.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ EOF
7676
'
7777

7878
test_expect_success 'progress display breaks long lines #2' '
79-
# Note: we dont need that many spaces after the title to cover up
79+
# Note: we do not need that many spaces after the title to cover up
8080
# the last line before breaking the progress line.
8181
sed -e "s/Z$//" >expect <<\EOF &&
8282
Working hard.......2.........3.........4.........5.........6: 0% (1/100000)<CR>
@@ -104,7 +104,7 @@ EOF
104104
'
105105

106106
test_expect_success 'progress display breaks long lines #3 - even the first is too long' '
107-
# Note: we dont actually need any spaces at the end of the title
107+
# Note: we do not actually need any spaces at the end of the title
108108
# line, because there is no previous progress line to cover up.
109109
sed -e "s/Z$//" >expect <<\EOF &&
110110
Working hard.......2.........3.........4.........5.........6: Z

t/t1512-rev-parse-disambiguation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ test_expect_success C_LOCALE_OUTPUT 'ambiguity hints' '
339339
test_expect_success C_LOCALE_OUTPUT 'ambiguity hints respect type' '
340340
test_must_fail git rev-parse 000000000^{commit} 2>stderr &&
341341
grep ^hint: stderr >hints &&
342-
# 5 commits, 1 tag (which is a commitish), plus intro line
342+
# 5 commits, 1 tag (which is a committish), plus intro line
343343
test_line_count = 7 hints
344344
'
345345

t/t4100/t-apply-3.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ dissimilarity index 82%
211211
-
212212
- /* If this is an exact directory match, we may have
213213
- * directory files following this path. Match on them.
214-
- * Otherwise, we're at a pach subcomponent, and we need
214+
- * Otherwise, we're at a patch subcomponent, and we need
215215
- * to try to match again.
216216
- */
217217
- if (mtype == 0)

t/t4100/t-apply-7.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ diff a/ls-tree.c b/ls-tree.c
335335

336336
- /* If this is an exact directory match, we may have
337337
- * directory files following this path. Match on them.
338-
- * Otherwise, we're at a pach subcomponent, and we need
338+
- * Otherwise, we're at a patch subcomponent, and we need
339339
- * to try to match again.
340340
+ if (e->directory) {
341341
+ /* If this is a directory, we have the following cases:

t/t4213-log-tabexpand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ count_expand ()
3636
esac
3737

3838
# Prefix the output with the command line arguments, and
39-
# replace SP with a dot both in the expecte and actual output
39+
# replace SP with a dot both in the expected and actual output
4040
# so that test_cmp would show the difference together with the
4141
# breakage in a way easier to consume by the debugging user.
4242
{

t/t5528-push-default.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ test_pushdefault_workflow success current master
163163
# update parent1's foo (which is our upstream)
164164
test_pushdefault_workflow success upstream foo
165165

166-
# upsream is foo which is not the name of the current branch
166+
# upstream is foo which is not the name of the current branch
167167
test_pushdefault_workflow failure simple master
168168

169169
# master and foo are updated

t/t5702-protocol-v2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ test_expect_success 'push with http:// and a config of v2 does not request v2' '
682682
git -C "$HTTPD_DOCUMENT_ROOT_PATH/http_parent" log -1 --format=%s client_branch >expect &&
683683
test_cmp expect actual &&
684684
685-
# Client didnt request to use protocol v2
685+
# Client did not request to use protocol v2
686686
! grep "Git-Protocol: version=2" log &&
687-
# Server didnt respond using protocol v2
687+
# Server did not respond using protocol v2
688688
! grep "git< version 2" log
689689
'
690690

t/t6043-merge-rename-directories.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ test_expect_success '3b-check: Avoid implicit rename if involved as source on cu
744744
#
745745
# What if we were to attempt to do directory rename detection when someone
746746
# "mostly" moved a directory but still left some files around, or,
747-
# equivalently, fully renamed a directory in one commmit and then recreated
747+
# equivalently, fully renamed a directory in one commit and then recreated
748748
# that directory in a later commit adding some new files and then tried to
749749
# merge?
750750
#
@@ -941,7 +941,7 @@ test_expect_success '5a-check: Merge directories, other side adds files to origi
941941
# Commit B: z/{b,c,d_1,e}, y/d_3
942942
# Expected: y/{b,c,e}, CONFLICT(add/add: y/d_2 vs. y/d_3)
943943
# NOTE: If z/d_1 in commit B were to be involved in dir rename detection, as
944-
# we normaly would since z/ is being renamed to y/, then this would be
944+
# we normally would since z/ is being renamed to y/, then this would be
945945
# a rename/delete (z/d_1 -> y/d_1 vs. deleted) AND an add/add/add
946946
# conflict of y/d_1 vs. y/d_2 vs. y/d_3. Add/add/add is not
947947
# representable in the index, so the existence of y/d_3 needs to
@@ -2089,7 +2089,7 @@ test_expect_success '8b-check: Dual-directory rename, one into the others way, w
20892089
#
20902090
# Note: It could easily be argued that the correct resolution here is
20912091
# y/{b,c,e}, CONFLICT(rename/delete: z/d -> y/d vs deleted)
2092-
# and that the modifed version of d should be present in y/ after
2092+
# and that the modified version of d should be present in y/ after
20932093
# the merge, just marked as conflicted. Indeed, I previously did
20942094
# argue that. But applying directory renames to the side of
20952095
# history where a file is merely modified results in spurious

0 commit comments

Comments
 (0)