typofix: assorted typofixes in comments, documentation and messages

Many instances of duplicate words (e.g. "the the path") and a few typoes are fixed, originally in multiple patches. wildmatch: fix duplicate words of "the" t: fix duplicate words of "output" transport-helper: fix duplicate words of "read" Git.pm: fix duplicate words of "return" path: fix duplicate words of "look" pack-protocol.txt: fix duplicate words of "the" precompose-utf8: fix typo of "sequences" split-index: fix typo worktree.c: fix typo remote-ext: fix typo utf8: fix duplicate words of "the" git-cvsserver: fix duplicate words Signed-off-by: Li Peng <lip@dtdream.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Li Peng committed May 6, 2016 at 20:36 UTC 832c0e5e63a0f61c3788847d4a7abb82d9e86ef4
12 files changed +14 -14
Documentation/technical/pack-protocol.txt
+1 -1
@@ -526,7 +526,7 @@ Push Certificate
526
527 A push certificate begins with a set of header lines. After the
528 header and an empty line, the protocol commands follow, one per
529 -line. Note that the the trailing LF in push-cert PKT-LINEs is _not_
529 +line. Note that the trailing LF in push-cert PKT-LINEs is _not_
530 optional; it must be present.
531
532 Currently, the following header fields are defined:
builtin/remote-ext.c
+1 -1
@@ -168,7 +168,7 @@ static int command_loop(const char *child)
168 size_t i;
169 if (!fgets(buffer, MAXCOMMAND - 1, stdin)) {
170 if (ferror(stdin))
171 - die("Comammand input error");
171 + die("Command input error");
172 exit(0);
173 }
174 /* Strip end of line characters. */
compat/precompose_utf8.c
+1 -1
@@ -147,7 +147,7 @@ struct dirent_prec_psx *precompose_utf8_readdir(PREC_DIR *prec_dir)
147 if (errno || inleft) {
148 /*
149 * iconv() failed and errno could be E2BIG, EILSEQ, EINVAL, EBADF
150 - * MacOS X avoids illegal byte sequemces.
150 + * MacOS X avoids illegal byte sequences.
151 * If they occur on a mounted drive (e.g. NFS) it is not worth to
152 * die() for that, but rather let the user see the original name
153 */
git-cvsserver.perl
+3 -3
@@ -1156,7 +1156,7 @@ sub prepDirForOutput
1156 # FUTURE: This would more accurately emulate CVS by sending
1157 # another copy of sticky after processing the files in that
1158 # directory. Or intermediate: perhaps send all sticky's for
1159 - # $seendirs after after processing all files.
1159 + # $seendirs after processing all files.
1160 }
1161
1162 # update \n
@@ -2824,7 +2824,7 @@ sub statecleanup
2824 }
2825
2826 # Return working directory CVS revision "1.X" out
2827 -# of the the working directory "entries" state, for the given filename.
2827 +# of the working directory "entries" state, for the given filename.
2828 # This is prefixed with a dash if the file is scheduled for removal
2829 # when it is committed.
2830 sub revparse
@@ -2935,7 +2935,7 @@ sub filecleanup
2935 return $filename;
2936 }
2937
2938 -# Remove prependdir from the path, so that is is relative to the directory
2938 +# Remove prependdir from the path, so that it is relative to the directory
2939 # the CVS client was started from, rather than the top of the project.
2940 # Essentially the inverse of filecleanup().
2941 sub remove_prependdir
path.c
+1 -1
@@ -134,7 +134,7 @@ static struct common_dir common_list[] = {
134 * definite
135 * definition
136 *
137 - * The trie would look look like:
137 + * The trie would look like:
138 * root: len = 0, children a and d non-NULL, value = NULL.
139 * a: len = 2, contents = bc, value = (data for "abc")
140 * d: len = 2, contents = ef, children i non-NULL, value = (data for "def")
perl/Git.pm
+1 -1
@@ -393,7 +393,7 @@ sub command_close_pipe {
393 Execute the given C<COMMAND> in the same way as command_output_pipe()
394 does but return both an input pipe filehandle and an output pipe filehandle.
395
396 -The function will return return C<($pid, $pipe_in, $pipe_out, $ctx)>.
396 +The function will return C<($pid, $pipe_in, $pipe_out, $ctx)>.
397 See C<command_close_bidi_pipe()> for details.
398
399 =cut
split-index.c
+1 -1
@@ -60,7 +60,7 @@ static void mark_base_index_entries(struct index_state *base)
60 * To keep track of the shared entries between
61 * istate->base->cache[] and istate->cache[], base entry
62 * position is stored in each base entry. All positions start
63 - * from 1 instead of 0, which is resrved to say "this is a new
63 + * from 1 instead of 0, which is reserved to say "this is a new
64 * entry".
65 */
66 for (i = 0; i < base->cache_nr; i++)
t/t0000-basic.sh
+1 -1
@@ -98,7 +98,7 @@ check_sub_test_lib_test () {
98 }
99
100 check_sub_test_lib_test_err () {
101 - name="$1" # stdin is the expected output output from the test
101 + name="$1" # stdin is the expected output from the test
102 # expected error output is in descriptior 3
103 (
104 cd "$name" &&
transport-helper.c
+1 -1
@@ -1152,7 +1152,7 @@ static void udt_close_if_finished(struct unidirectional_transfer *t)
1152 }
1153
1154 /*
1155 - * Tries to read read data from source into buffer. If buffer is full,
1155 + * Tries to read data from source into buffer. If buffer is full,
1156 * no data is read. Returns 0 on success, -1 on error.
1157 */
1158 static int udt_do_read(struct unidirectional_transfer *t)
utf8.h
+1 -1
@@ -48,7 +48,7 @@ static inline char *reencode_string(const char *in,
48 int mbs_chrlen(const char **text, size_t *remainder_p, const char *encoding);
49
50 /*
51 - * Returns true if the the path would match ".git" after HFS case-folding.
51 + * Returns true if the path would match ".git" after HFS case-folding.
52 * The path should be NUL-terminated, but we will match variants of both ".git\0"
53 * and ".git/..." (but _not_ ".../.git"). This makes it suitable for both fsck
54 * and verify_path().
wildmatch.c
+1 -1
@@ -136,7 +136,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags)
136 /*
137 * Try to advance faster when an asterisk is
138 * followed by a literal. We know in this case
139 - * that the the string before the literal
139 + * that the string before the literal
140 * must belong to "*".
141 * If match_slash is false, do not look past
142 * the first slash as it cannot belong to '*'.
worktree.c
+1 -1
@@ -18,7 +18,7 @@ void free_worktrees(struct worktree **worktrees)
18
19 /*
20 * read 'path_to_ref' into 'ref'. Also if is_detached is not NULL,
21 - * set is_detached to 1 (0) if the ref is detatched (is not detached).
21 + * set is_detached to 1 (0) if the ref is detached (is not detached).
22 *
23 * $GIT_COMMON_DIR/$symref (e.g. HEAD) is practically outside $GIT_DIR so
24 * for linked worktrees, `resolve_ref_unsafe()` won't work (it uses