Typo fixes
cover Typo fixes
Three patches as a result of running the documentation and source through aspell. If there is interest in carrying the script and wordlists used in-tree, then I can submit patches to add them to contrib/ maybe?
Mike
PATCH 1/3 Documentation: fix typos / spelling mistakes
--- Documentation/git-cvsimport.txt | 2 +- Documentation/git-format-patch.txt | 2 +- contrib/thunderbird-patch-inline/README | 4 ++-- gitweb/README | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
Documentation/git-cvsimport.txt +1 -1
@@ -196,7 +196,7 @@ Problems related to tags: If you suspect that any of these issues may apply to the repository you want to import consider using these alternative tools which proved to be -more stable in practise: +more stable in practice: * cvs2git (part of cvs2svn), `http://cvs2svn.tigris.org` * parsecvs, `http://cgit.freedesktop.org/~keithp/parsecvs`
Documentation/git-format-patch.txt +1 -1
@@ -194,7 +194,7 @@ CONFIGURATION ------------- You can specify extra mail header lines to be added to each message in the repository configuration, new defaults for the subject prefix -and file suffix, control attachements, and number patches when outputting +and file suffix, control attachments, and number patches when outputting more than one. ------------
contrib/thunderbird-patch-inline/README +2 -2
@@ -1,12 +1,12 @@ appp.sh is a script that is supposed to be used together with ExternalEditor -for Mozilla Thundebird. It will let you include patches inline in e-mails +for Mozilla Thunderbird. It will let you include patches inline in e-mails in an easy way. Usage: - Generate the patch with git format-patch. - Start writing a new e-mail in Thunderbird. - Press the external editor button (or Ctrl-E) to run appp.sh -- Select the previosly generated patch file. +- Select the previously generated patch file. - Finish editing the e-mail. Any text that is entered into the message editor before appp.sh is called
gitweb/README +1 -1
@@ -206,7 +206,7 @@ not include variables usually directly set during build): * $fallback_encoding Gitweb assumes this charset if line contains non-UTF-8 characters. Fallback decoding is used without error checking, so it can be even - 'utf-8'. Value mist be valid encodig; see Encoding::Supported(3pm) man + 'utf-8'. Value mist be valid encoding; see Encoding::Supported(3pm) man page for a list. By default 'latin1', aka. 'iso-8859-1'. * @diff_opts Rename detection options for git-diff and git-diff-tree. By default
Signature · 1 line
1.6.0.2.229.g1293c.dirty
PATCH 2/3 builtin-remote: fix typo in option description
--- builtin-remote.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
builtin-remote.c +1 -1
@@ -1216,7 +1216,7 @@ static int update(int argc, const char **argv)struct option options[] = {OPT_GROUP ("update specific options" ),OPT_BOOLEAN ('p' ,"prune" , &prune, -"prune remotes after fecthing" ), +"prune remotes after fetching" ),OPT_END () };
Signature · 1 line
1.6.0.2.229.g1293c.dirty
PATCH 3/3 Fix typos / spelling in comments
--- builtin-checkout.c | 2 +- builtin-ls-files.c | 2 +- builtin-pack-objects.c | 2 +- builtin-reflog.c | 2 +- builtin-reset.c | 2 +- compat/cygwin.c | 2 +- compat/fnmatch/fnmatch.c | 4 ++-- compat/mingw.c | 2 +- compat/regex/regex.c | 4 ++-- diffcore-rename.c | 2 +- fast-import.c | 6 +++--- fsck.h | 2 +- git.c | 2 +- graph.c | 2 +- levenshtein.c | 2 +- parse-options.h | 8 ++++---- revision.c | 2 +- strbuf.h | 2 +- tree-diff.c | 2 +- xdiff/xdiffi.c | 2 +- 20 files changed, 27 insertions(+), 27 deletions(-)
builtin-checkout.c +1 -1
@@ -178,7 +178,7 @@ static int checkout_merged(int pos, struct checkout *state)/* * NEEDSWORK: * There is absolutely no reason to write this as a blob object -* and create a phoney cache entry just to leak. This hack is +* and create a phony cache entry just to leak. This hack is * primarily to get to the write_entry() machinery that massages * the contents to work-tree format and writes out which only * allows it for a cache entry. The code in write_entry() needs
builtin-ls-files.c +1 -1
@@ -512,7 +512,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix) pathspec =get_pathspec (prefix, argv); -/* be nice with submodule patsh ending in a slash */ +/* be nice with submodule paths ending in a slash */ read_cache ();if (pathspec)strip_trailing_slash_from_submodules ();
builtin-pack-objects.c +1 -1
@@ -293,7 +293,7 @@ static unsigned long write_object(struct sha1file *f,die ("unable to read %s" ,sha1_to_hex (entry->idx.sha1));/* * make sure no cached delta data remains from a -* previous attempt before a pack split occured. +* previous attempt before a pack split occurred. */ free (entry->delta_data); entry->delta_data =NULL ;
builtin-reflog.c +1 -1
@@ -243,7 +243,7 @@ static void mark_reachable(struct commit *commit, unsigned long expire_limit)* We need to compute if commit on either side of an reflog * entry is reachable from the tip of the ref for all entries. * Mark commits that are reachable from the tip down to the -* time threashold first; we know a commit marked thusly is +* time threshold first; we know a commit marked thusly is * reachable from the tip without running in_merge_bases() * at all. */
builtin-reset.c +1 -1
@@ -228,7 +228,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix) }/* * Otherwise, argv[i] could be either <rev> or <paths> and -* has to be unambigous. +* has to be unambiguous. */ else if (!get_sha1 (argv[i], sha1)) {/*
compat/cygwin.c +1 -1
@@ -92,7 +92,7 @@ static int cygwin_stat(const char *path, struct stat *buf)* Reading this option is not always possible immediately as git_dir may be * not be set yet. So until it is set, use cygwin lstat/stat functions. * However, if core.filemode is set, we must use the Cygwin posix -* stat/lstat as the Windows stat fuctions do not determine posix filemode. +* stat/lstat as the Windows stat functions do not determine posix filemode. * * Note that git_cygwin_config() does NOT call git_default_config() and this * is deliberate. Many commands read from config to establish initial
compat/fnmatch/fnmatch.c +2 -2
@@ -39,7 +39,7 @@# include <stdlib.h> #endif -/* For platform which support the ISO C amendement 1 functionality we +/* For platform which support the ISO C amendment 1 functionality we support user defined character classes. */ #if defined _LIBC || (definedHAVE_WCTYPE_H && definedHAVE_WCHAR_H )/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
@@ -90,7 +90,7 @@# if defined _LIBC || (definedHAVE_WCTYPE_H && definedHAVE_WCHAR_H )/* The GNU C library provides support for user-defined character classes -and the functions from ISO C amendement 1. */ +and the functions from ISO C amendment 1. */ # ifdef CHARCLASS_NAME_MAX # define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX# else
compat/mingw.c +1 -1
@@ -396,7 +396,7 @@ repeat:* its own input data to become available. But since * the process (pack-objects) is itself CPU intensive, * it will happily pick up the time slice that we are -* relinguishing here. +* relinquishing here. */ Sleep (0 ); goto repeat;
compat/regex/regex.c +2 -2
@@ -1043,7 +1043,7 @@ regex_compile (pattern, size, syntax, bufp)they can be reliably used as array indices. */ registerunsigned char c, c1; -/* A random tempory spot in PATTERN. */ +/* A random temporary spot in PATTERN. */ const char *p1;/* Points to the end of the buffer, where we should append. */
@@ -1796,7 +1796,7 @@ regex_compile (pattern, size, syntax, bufp) we're all done, the pattern will look like: set_number_at <jump count> <upper bound> set_number_at <succeed_n count> <lower bound> - succeed_n <after jump addr> <succed_n count> + succeed_n <after jump addr> <succeed_n count> <body of loop> jump_n <succeed_n addr> <jump count> (The upper bound and `jump_n' are omitted if
diffcore-rename.c +1 -1
@@ -267,7 +267,7 @@ static int find_identical_files(struct file_similarity *src,int score;struct diff_filespec *source = p->filespec; -/* False hash collission? */ +/* False hash collision? */ if (hashcmp (source->sha1, target->sha1))continue ;/* Non-regular files? If so, the modes must match! */
fast-import.c +3 -3
@@ -76,7 +76,7 @@ Format of STDIN stream:delim lf;# note : declen indicates the length of binary_data in bytes. -# declen does not include the lf preceeding the binary data. +# declen does not include the lf preceding the binary data. # exact_data ::= 'data' sp declen lf binary_data;
@@ -134,7 +134,7 @@ Format of STDIN stream: ## In case it is not clear, the '#' that starts the comment# must be the first character on that the line (an lf have -# preceeded it). +# preceded it). # comment ::= '#' not_lf* lf; not_lf ::= # Any byte that is not ASCII newline (LF);
@@ -953,7 +953,7 @@ static void end_packfile(void)close (pack_data->pack_fd); idx_name =keep_pack (create_index ()); -/* Register the packfile with core git's machinary. */ +/* Register the packfile with core git's machinery. */ new_p =add_packed_git (idx_name,strlen (idx_name),1 );if (!new_p)die ("core git rejected index %s" , idx_name);
fsck.h +1 -1
@@ -23,7 +23,7 @@ int fsck_error_function(struct object *obj, int type, const char *fmt, ...);* the return value is: * -1 error in processing the object * <0 return value of the callback, which lead to an abort -* >0 return value of the first sigaled error >0 (in the case of no other errors) +* >0 return value of the first signaled error >0 (in the case of no other errors) * 0 everything OK */ int fsck_walk (struct object *obj,fsck_walk_func walk,void *data);
git.c +1 -1
@@ -497,7 +497,7 @@ int main(int argc, const char **argv)/* * We use PATH to find git commands, but we prepend some higher -* precidence paths: the "--exec-path" option, the GIT_EXEC_PATH +* precedence paths: the "--exec-path" option, the GIT_EXEC_PATH * environment, and the $(gitexecdir) from the Makefile at build * time. */
graph.c +1 -1
@@ -34,7 +34,7 @@ static void graph_padding_line(struct git_graph *graph, struct strbuf *sb);* newline. A new graph line will not be printed after the final newline. * If the strbuf is empty, no output will be printed. * -* Since the first line will not include the graph ouput, the caller is +* Since the first line will not include the graph output, the caller is * responsible for printing this line's graph (perhaps via * graph_show_commit() or graph_show_oneline()) before calling * graph_show_strbuf().
levenshtein.c +1 -1
@@ -27,7 +27,7 @@* * It does so by calculating the costs of the path ending in characters * i (in string1) and j (in string2), respectively, given that the last -* operation is a substition, a swap, a deletion, or an insertion. +* operation is a substitution, a swap, a deletion, or an insertion. * * This implementation allows the costs to be weighted: *
parse-options.h +4 -4
@@ -52,7 +52,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `argh`:: * token to explain the kind of argument this option wants. Keep it -* homogenous across the repository. +* homogeneous across the repository. * * `help`:: * the short help associated to what the option does.
@@ -61,7 +61,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `flags`:: * mask of parse_opt_option_flags. -* PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs) +* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs) * PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs * PARSE_OPT_NONEG: says that this option cannot be negated * PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in
@@ -105,7 +105,7 @@ struct option { { OPTION_CALLBACK, (s), (l), (v), (a), (h), 0, (f) }/* parse_options() will filter out the processed options and leave the -* non-option argments in argv[]. +* non-option arguments in argv[]. * Returns the number of arguments left in argv[]. */ extern int parse_options(int argc, const char **argv,
@@ -115,7 +115,7 @@ extern int parse_options(int argc, const char **argv, extern NORETURN void usage_with_options(const char * const *usagestr,const struct option *options); -/*----- incremantal advanced APIs -----*/ +/*----- incremental advanced APIs -----*/ enum {PARSE_OPT_HELP =-1 ,
revision.c +1 -1
@@ -209,7 +209,7 @@ static struct commit *handle_commit(struct rev_info *revs, struct object *object }/* -* Tree object? Either mark it uniniteresting, or add it +* Tree object? Either mark it uninteresting, or add it * to the list of objects to look at later.. */ if (object->type ==OBJ_TREE ) {
strbuf.h +1 -1
@@ -11,7 +11,7 @@* build complex strings/buffers whose final size isn't easily known. * * It is NOT legal to copy the ->buf pointer away. -* `strbuf_detach' is the operation that detachs a buffer from its shell +* `strbuf_detach' is the operation that detaches a buffer from its shell * while keeping the shell valid wrt its invariants. * * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
tree-diff.c +1 -1
@@ -374,7 +374,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co }/* -* Then, discard all the non-relevane file pairs... +* Then, discard all the non-relevant file pairs... */ for (i =0 ; i < q->nr; i++) {struct diff_filepair *p = q->queue[i];
xdiff/xdiffi.c +1 -1
@@ -456,7 +456,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {/* * Record the end-of-group position in case we are matched * with a group of changes in the other file (that is, the -* change record before the enf-of-group index in the other +* change record before the end-of-group index in the other * file is set). */ ixref = rchgo[ixo -1 ] ? ix: nrec;
Signature · 1 line
1.6.0.2.229.g1293c.dirty
Re: [PATCH 3/3] Fix typos / spelling in comments
Word based spell checkers can only do what they can...
I think we should use this occasion and have humans at least look at the context.
Mike Ralphson venit, vidit, dixit 17.04.2009 20:13:
Quoted 68 lines
Signed-off-by Mike Ralphson <[email protected]>--- builtin-checkout.c | 2 +- builtin-ls-files.c | 2 +- builtin-pack-objects.c | 2 +- builtin-reflog.c | 2 +- builtin-reset.c | 2 +- compat/cygwin.c | 2 +- compat/fnmatch/fnmatch.c | 4 ++-- compat/mingw.c | 2 +- compat/regex/regex.c | 4 ++-- diffcore-rename.c | 2 +- fast-import.c | 6 +++--- fsck.h | 2 +- git.c | 2 +- graph.c | 2 +- levenshtein.c | 2 +- parse-options.h | 8 ++++---- revision.c | 2 +- strbuf.h | 2 +- tree-diff.c | 2 +- xdiff/xdiffi.c | 2 +- 20 files changed, 27 insertions(+), 27 deletions(-)builtin-checkout.c +1
-1@@ -178,7 +178,7 @@ static int checkout_merged(int pos, struct checkout *state)/* * NEEDSWORK: * There is absolutely no reason to write this as a blob object -* and create a phoney cache entry just to leak. This hack is +* and create a phony cache entry just to leak. This hack is * primarily to get to the write_entry() machinery that massages * the contents to work-tree format and writes out which only * allows it for a cache entry. The code in write_entry() needs builtin-ls-files.c +1
-1@@ -512,7 +512,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix) pathspec =get_pathspec (prefix, argv); -/* be nice with submodule patsh ending in a slash */ +/* be nice with submodule paths ending in a slash */ read_cache ();if (pathspec)strip_trailing_slash_from_submodules ();builtin-pack-objects.c +1
-1@@ -293,7 +293,7 @@ static unsigned long write_object(struct sha1file *f,die ("unable to read %s" ,sha1_to_hex (entry->idx.sha1));/* * make sure no cached delta data remains from a -* previous attempt before a pack split occured. +* previous attempt before a pack split occurred. */ free (entry->delta_data); entry->delta_data =NULL ;builtin-reflog.c +0
-0
builtin-reflog.c static void mark_reachable(struct commit *commit, unsigned long expire_limit) · line 243
Quoted 1 line
builtin-reflog.c +0
-0@@ -243,7 +243,7 @@ static void mark_reachable(struct commit *commit, unsigned long expire_limit)* We need to compute if commit on either side of an reflog
...compute whether the commit on either side of a reflog
Quoted 25 lines
builtin-reflog.c +1
-1* entry is reachable from the tip of the ref for all entries. * Mark commits that are reachable from the tip down to the -* time threashold first; we know a commit marked thusly is +* time threshold first; we know a commit marked thusly is * reachable from the tip without running in_merge_bases() * at all. */ builtin-reset.c +1
-1@@ -228,7 +228,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix) }/* * Otherwise, argv[i] could be either <rev> or <paths> and -* has to be unambigous. +* has to be unambiguous. */ else if (!get_sha1 (argv[i], sha1)) {/* compat/cygwin.c +0
-0
compat/cygwin.c static int cygwin_stat(const char *path, struct stat *buf) · line 93
Quoted 2 lines
compat/cygwin.c +0
-0@@ -92,7 +92,7 @@ static int cygwin_stat(const char *path, struct stat *buf)* Reading this option is not always possible immediately as git_dir may be * not be set yet. So until it is set, use cygwin lstat/stat functions.
...may not be set yet.
Quoted 11 lines
compat/cygwin.c +1
-1* However, if core.filemode is set, we must use the Cygwin posix -* stat/lstat as the Windows stat fuctions do not determine posix filemode. +* stat/lstat as the Windows stat functions do not determine posix filemode. * * Note that git_cygwin_config() does NOT call git_default_config() and this * is deliberate. Many commands read from config to establish initial compat/fnmatch/fnmatch.c +0
-0
compat/fnmatch/fnmatch.c line 42
Quoted 5 lines
compat/fnmatch/fnmatch.c +1
-1@@ -39,7 +39,7 @@# include <stdlib.h> #endif -/* For platform which support the ISO C amendement 1 functionality we +/* For platform which support the ISO C amendment 1 functionality we
platforms
Quoted 74 lines
compat/fnmatch/fnmatch.c +1
-1support user defined character classes. */ #if defined _LIBC || (definedHAVE_WCTYPE_H && definedHAVE_WCHAR_H )/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */ @@ -90,7 +90,7 @@# if defined _LIBC || (definedHAVE_WCTYPE_H && definedHAVE_WCHAR_H )/* The GNU C library provides support for user-defined character classes -and the functions from ISO C amendement 1. */ +and the functions from ISO C amendment 1. */ # ifdef CHARCLASS_NAME_MAX # define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX# else compat/mingw.c +1
-1@@ -396,7 +396,7 @@ repeat:* its own input data to become available. But since * the process (pack-objects) is itself CPU intensive, * it will happily pick up the time slice that we are -* relinguishing here. +* relinquishing here. */ Sleep (0 ); goto repeat;compat/regex/regex.c +2
-2@@ -1043,7 +1043,7 @@ regex_compile (pattern, size, syntax, bufp)they can be reliably used as array indices. */ registerunsigned char c, c1; -/* A random tempory spot in PATTERN. */ +/* A random temporary spot in PATTERN. */ const char *p1;/* Points to the end of the buffer, where we should append. */ @@ -1796,7 +1796,7 @@ regex_compile (pattern, size, syntax, bufp) we're all done, the pattern will look like: set_number_at <jump count> <upper bound> set_number_at <succeed_n count> <lower bound> - succeed_n <after jump addr> <succed_n count> + succeed_n <after jump addr> <succeed_n count> <body of loop> jump_n <succeed_n addr> <jump count> (The upper bound and `jump_n' are omitted ifdiffcore-rename.c +1
-1@@ -267,7 +267,7 @@ static int find_identical_files(struct file_similarity *src,int score;struct diff_filespec *source = p->filespec; -/* False hash collission? */ +/* False hash collision? */ if (hashcmp (source->sha1, target->sha1))continue ;/* Non-regular files? If so, the modes must match! */ fast-import.c +1
-1@@ -76,7 +76,7 @@ Format of STDIN stream:delim lf;# note : declen indicates the length of binary_data in bytes. -# declen does not include the lf preceeding the binary data. +# declen does not include the lf preceding the binary data. # exact_data ::= 'data' sp declen lf binary_data;
fast-import.c Format of STDIN stream: · line 136
Quoted 3 lines
fast-import.c +0
-0@@ -134,7 +134,7 @@ Format of STDIN stream: ## In case it is not clear, the '#' that starts the comment# must be the first character on that the line (an lf have
on that line
(also, omit have)
Quoted 80 lines
fast-import.c +2
-2-# preceeded it). +# preceded it). # comment ::= '#' not_lf* lf; not_lf ::= # Any byte that is not ASCII newline (LF);@@ -953,7 +953,7 @@ static void end_packfile(void)close (pack_data->pack_fd); idx_name =keep_pack (create_index ()); -/* Register the packfile with core git's machinary. */ +/* Register the packfile with core git's machinery. */ new_p =add_packed_git (idx_name,strlen (idx_name),1 );if (!new_p)die ("core git rejected index %s" , idx_name);fsck.h +1
-1@@ -23,7 +23,7 @@ int fsck_error_function(struct object *obj, int type, const char *fmt, ...);* the return value is: * -1 error in processing the object * <0 return value of the callback, which lead to an abort -* >0 return value of the first sigaled error >0 (in the case of no other errors) +* >0 return value of the first signaled error >0 (in the case of no other errors) * 0 everything OK */ int fsck_walk (struct object *obj,fsck_walk_func walk,void *data);git.c +1
-1@@ -497,7 +497,7 @@ int main(int argc, const char **argv)/* * We use PATH to find git commands, but we prepend some higher -* precidence paths: the "--exec-path" option, the GIT_EXEC_PATH +* precedence paths: the "--exec-path" option, the GIT_EXEC_PATH * environment, and the $(gitexecdir) from the Makefile at build * time. */ graph.c +1
-1@@ -34,7 +34,7 @@ static void graph_padding_line(struct git_graph *graph, struct strbuf *sb);* newline. A new graph line will not be printed after the final newline. * If the strbuf is empty, no output will be printed. * -* Since the first line will not include the graph ouput, the caller is +* Since the first line will not include the graph output, the caller is * responsible for printing this line's graph (perhaps via * graph_show_commit() or graph_show_oneline()) before calling * graph_show_strbuf(). levenshtein.c +1
-1@@ -27,7 +27,7 @@* * It does so by calculating the costs of the path ending in characters * i (in string1) and j (in string2), respectively, given that the last -* operation is a substition, a swap, a deletion, or an insertion. +* operation is a substitution, a swap, a deletion, or an insertion. * * This implementation allows the costs to be weighted: * parse-options.h +1
-1@@ -52,7 +52,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `argh`:: * token to explain the kind of argument this option wants. Keep it -* homogenous across the repository. +* homogeneous across the repository. * * `help`:: * the short help associated to what the option does.
parse-options.h typedef int parse_opt_cb(const struct option *, const char *arg, int unset); · line 67
Quoted 8 lines
parse-options.h +1
-1@@ -61,7 +61,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `flags`:: * mask of parse_opt_option_flags. -* PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs) +* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs) * PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs * PARSE_OPT_NONEG: says that this option cannot be negated * PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in
shown in
Quoted 70 lines
parse-options.h +2
-2@@ -105,7 +105,7 @@ struct option { { OPTION_CALLBACK, (s), (l), (v), (a), (h), 0, (f) }/* parse_options() will filter out the processed options and leave the -* non-option argments in argv[]. +* non-option arguments in argv[]. * Returns the number of arguments left in argv[]. */ extern int parse_options(int argc, const char **argv,@@ -115,7 +115,7 @@ extern int parse_options(int argc, const char **argv, extern NORETURN void usage_with_options(const char * const *usagestr,const struct option *options); -/*----- incremantal advanced APIs -----*/ +/*----- incremental advanced APIs -----*/ enum {PARSE_OPT_HELP =-1 ,revision.c +1
-1@@ -209,7 +209,7 @@ static struct commit *handle_commit(struct rev_info *revs, struct object *object }/* -* Tree object? Either mark it uniniteresting, or add it +* Tree object? Either mark it uninteresting, or add it * to the list of objects to look at later.. */ if (object->type ==OBJ_TREE ) {strbuf.h +1
-1@@ -11,7 +11,7 @@* build complex strings/buffers whose final size isn't easily known. * * It is NOT legal to copy the ->buf pointer away. -* `strbuf_detach' is the operation that detachs a buffer from its shell +* `strbuf_detach' is the operation that detaches a buffer from its shell * while keeping the shell valid wrt its invariants. * * 2. the ->buf member is a byte array that has at least ->len + 1 bytes tree-diff.c +1
-1@@ -374,7 +374,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co }/* -* Then, discard all the non-relevane file pairs... +* Then, discard all the non-relevant file pairs... */ for (i =0 ; i < q->nr; i++) {struct diff_filepair *p = q->queue[i];xdiff/xdiffi.c +1
-1@@ -456,7 +456,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {/* * Record the end-of-group position in case we are matched * with a group of changes in the other file (that is, the -* change record before the enf-of-group index in the other +* change record before the end-of-group index in the other * file is set). */ ixref = rchgo[ixo -1 ] ? ix: nrec;
Re: [PATCH 3/3] Fix typos / spelling in comments
Quoted 3 lines · Michael J Gruber
Word based spell checkers can only do what they can...
I think we should use this occasion and have humans at least look at the context.
Absolutely. Care to make that into a follow-up incremental patch so that I can squash it in when I apply this 3/3 patch?
PATCH 1/1 Fix more typos/spelling in comments
A few more fixes on top of the automatic spell checker generated ones.
---
Sorry it took me so long...
builtin-reflog.c | 2 +- compat/cygwin.c | 2 +- compat/fnmatch/fnmatch.c | 2 +- fast-import.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
builtin-reflog.c +1 -1
@@ -240,7 +240,7 @@ static int unreachable(struct expire_reflog_cb *cb, struct commit *commit, unsigstatic void mark_reachable (struct commit *commit,unsigned long expire_limit) {/* -* We need to compute if commit on either side of an reflog +* We need to compute whether the commit on either side of a reflog * entry is reachable from the tip of the ref for all entries. * Mark commits that are reachable from the tip down to the * time threshold first; we know a commit marked thusly is
compat/cygwin.c +1 -1
@@ -89,7 +89,7 @@ static int cygwin_stat(const char *path, struct stat *buf)/* * At start up, we are trying to determine whether Win32 API or cygwin stat * functions should be used. The choice is determined by core.ignorecygwinfstricks. -* Reading this option is not always possible immediately as git_dir may be +* Reading this option is not always possible immediately as git_dir may * not be set yet. So until it is set, use cygwin lstat/stat functions. * However, if core.filemode is set, we must use the Cygwin posix * stat/lstat as the Windows stat functions do not determine posix filemode.
compat/fnmatch/fnmatch.c +1 -1
@@ -39,7 +39,7 @@# include <stdlib.h> #endif -/* For platform which support the ISO C amendment 1 functionality we +/* For platforms which support the ISO C amendment 1 functionality we support user defined character classes. */ #if defined _LIBC || (definedHAVE_WCTYPE_H && definedHAVE_WCHAR_H )/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
fast-import.c +1 -1
@@ -133,7 +133,7 @@ Format of STDIN stream:# always escapes the related input from comment processing. ## In case it is not clear, the '#' that starts the comment -# must be the first character on that the line (an lf have +# must be the first character on that line (an lf# preceded it). # comment ::= '#' not_lf* lf;
Signature · 1 line
1.6.3.rc1.34.g0be9b
Re: [PATCH] Fix more typos/spelling in comments
Thanks.
Re: [PATCH 3/3] Fix typos / spelling in comments
In reply to Mike RalphsonThanks.
Re: [PATCH 2/3] builtin-remote: fix typo in option description
In reply to Mike RalphsonHeya,
Quoted 2 lines · Mike Ralphson
- "prune remotes after fecthing"),
+ "prune remotes after fetching"),
For those who had a hard time finding the change (like me), it is:
s/fecthing/fetching
Signature · 3 lines
Cheers, Sverre Rabbelier
Re: [PATCH 1/3] Documentation: fix typos / spelling mistakes
In reply to Mike RalphsonMike Ralphson, 17.04.2009:
gitweb/README not include variables usually directly set during build): · line 209
Quoted 3 lines
gitweb/README +1
-1- 'utf-8'. Value mist be valid encodig; see Encoding::Supported(3pm) man + 'utf-8'. Value mist be valid encoding; see Encoding::Supported(3pm) man
I guess this should be "must" instead of "mist". Of course the spell checker couldn't find it, but while we are in this line...
Markus
Re: [PATCH 1/3] Documentation: fix typos / spelling mistakes
2009/4/17 Markus Heidelberg <[email protected]>:
Quoted 7 lines
Mike Ralphson, 17.04.2009:
gitweb/README not include variables usually directly set during build): · line 209
Quoted 3 lines
gitweb/README +1
-1- 'utf-8'. Value mist be valid encodig; see Encoding::Supported(3pm) man + 'utf-8'. Value mist be valid encoding; see Encoding::Supported(3pm) manI guess this should be "must" instead of "mist". Of course the spell checker couldn't find it, but while we are in this line...
Annoyingly, I *did* find it and fix that in the proofreading stage the last time I ran my check, but I foolishly decided to just bin my work in progress and reset to HEAD and merge in the latest master. Then I forgot that change in my hurry to get the patches out before I was thrown out of the building by the cleaners. And that's a very painful way to be thrown out 8-)
Thank you both for spotting it.
Mike
Re: [PATCH 1/3] Documentation: fix typos / spelling mistakes
In reply to Mike RalphsonMike Ralphson venit, vidit, dixit 17.04.2009 20:13:
Quoted 58 lines
Signed-off-by Mike Ralphson <[email protected]>--- Documentation/git-cvsimport.txt | 2 +- Documentation/git-format-patch.txt | 2 +- contrib/thunderbird-patch-inline/README | 4 ++-- gitweb/README | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)Documentation/git-cvsimport.txt +1
-1@@ -196,7 +196,7 @@ Problems related to tags: If you suspect that any of these issues may apply to the repository you want to import consider using these alternative tools which proved to be -more stable in practise: +more stable in practice: * cvs2git (part of cvs2svn), `http://cvs2svn.tigris.org` * parsecvs, `http://cgit.freedesktop.org/~keithp/parsecvs`Documentation/git-format-patch.txt +1
-1@@ -194,7 +194,7 @@ CONFIGURATION ------------- You can specify extra mail header lines to be added to each message in the repository configuration, new defaults for the subject prefix -and file suffix, control attachements, and number patches when outputting +and file suffix, control attachments, and number patches when outputting more than one. ------------contrib/thunderbird-patch-inline/README +2
-2@@ -1,12 +1,12 @@ appp.sh is a script that is supposed to be used together with ExternalEditor -for Mozilla Thundebird. It will let you include patches inline in e-mails +for Mozilla Thunderbird. It will let you include patches inline in e-mails in an easy way. Usage: - Generate the patch with git format-patch. - Start writing a new e-mail in Thunderbird. - Press the external editor button (or Ctrl-E) to run appp.sh -- Select the previosly generated patch file. +- Select the previously generated patch file. - Finish editing the e-mail. Any text that is entered into the message editor before appp.sh is calledgitweb/README +0
-0
gitweb/README not include variables usually directly set during build): · line 209
Quoted 5 lines
gitweb/README +1
-1@@ -206,7 +206,7 @@ not include variables usually directly set during build): * $fallback_encoding Gitweb assumes this charset if line contains non-UTF-8 characters. Fallback decoding is used without error checking, so it can be even - 'utf-8'. Value mist be valid encodig; see Encoding::Supported(3pm) man + 'utf-8'. Value mist be valid encoding; see Encoding::Supported(3pm) man
That line clearly demonstrates the limits of word based spell checkers... s/mist/must/ ;)
Quoted 3 lines
gitweb/README +0
-0page for a list. By default 'latin1', aka. 'iso-8859-1'. * @diff_opts Rename detection options for git-diff and git-diff-tree. By default