summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bad542f)
raw | patch | inline | side by side (parent: bad542f)
author | Mike Ralphson <mike@abacus.co.uk> | |
Fri, 17 Apr 2009 18:13:30 +0000 (19:13 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 23 Apr 2009 02:02:12 +0000 (19:02 -0700) |
Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 files changed:
builtin-checkout.c | patch | blob | history | |
builtin-ls-files.c | patch | blob | history | |
builtin-pack-objects.c | patch | blob | history | |
builtin-reflog.c | patch | blob | history | |
builtin-reset.c | patch | blob | history | |
compat/cygwin.c | patch | blob | history | |
compat/fnmatch/fnmatch.c | patch | blob | history | |
compat/mingw.c | patch | blob | history | |
compat/regex/regex.c | patch | blob | history | |
diffcore-rename.c | patch | blob | history | |
fast-import.c | patch | blob | history | |
fsck.h | patch | blob | history | |
git.c | patch | blob | history | |
graph.c | patch | blob | history | |
levenshtein.c | patch | blob | history | |
parse-options.h | patch | blob | history | |
revision.c | patch | blob | history | |
strbuf.h | patch | blob | history | |
tree-diff.c | patch | blob | history | |
xdiff/xdiffi.c | patch | blob | history |
diff --git a/builtin-checkout.c b/builtin-checkout.c
index ee1edd406ffde4b31bf2685a634a6d318407724f..383598c9bf06394ff44345e1c56ccb6adb4a9d80 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
/*
* 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
diff --git a/builtin-ls-files.c b/builtin-ls-files.c
index 88e2697aebf11399baf9f9c8b5a63b06a0f83c1d..da2daf45acd2154b7f00da34d41a5ab8acaf0c38 100644 (file)
--- a/builtin-ls-files.c
+++ b/builtin-ls-files.c
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();
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 419f29aa1ac2912af15fa340c88967fc0c26ffba..9742b45c4da7f9330491d0b4c6d3ed60aadb0f4c 100644 (file)
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
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;
diff --git a/builtin-reflog.c b/builtin-reflog.c
index 249ad2a311f2e9680618870aed3ac053c9fcf7a1..ff8b4f615b67358d31ccca78d7639ad0fe1ec78e 100644 (file)
--- a/builtin-reflog.c
+++ b/builtin-reflog.c
* 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.
*/
diff --git a/builtin-reset.c b/builtin-reset.c
index c0cb915c26b56a905807cefa4e246d99d199b297..7e7ebabaa865ebd749502774638efe7b6d26bec1 100644 (file)
--- a/builtin-reset.c
+++ b/builtin-reset.c
}
/*
* 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)) {
/*
diff --git a/compat/cygwin.c b/compat/cygwin.c
index ebac1483929c798905e6558e0013e3de3d6abeb2..119287412d26dec68ed1c099aa449a6ea16b7bfd 100644 (file)
--- a/compat/cygwin.c
+++ b/compat/cygwin.c
* 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
index 1f4ead5f981688ee9e29ae2ee281e3904c9131f6..03157a4ab5e4aee407d133e9de58c953265c46a3 100644 (file)
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
# 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 || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
# if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_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
diff --git a/compat/mingw.c b/compat/mingw.c
index 1a17cf6cce6b71a5d5acddea2f1dda50a08df30c..2a047019e819740b0208bcaa9c18999c68d1c89c 100644 (file)
--- a/compat/mingw.c
+++ b/compat/mingw.c
* 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;
diff --git a/compat/regex/regex.c b/compat/regex/regex.c
index 87b33e46697b9a5dd9a9e8391ca3607f7e2ff569..5ea007567d15c229685f571628d4afcce6783e8d 100644 (file)
--- a/compat/regex/regex.c
+++ b/compat/regex/regex.c
they can be reliably used as array indices. */
register unsigned 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. */
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
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 0b0d6b8c8c2ab8833bb5d929ef0d3cb7891ec582..63ac998bfaf64da807bec0ae0bd57c391fb651fe 100644 (file)
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
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! */
diff --git a/fast-import.c b/fast-import.c
index 23c496d6839646ec61a7172f83c86e244463498f..53617a10d2de2480a5151772e68a10156e139b34 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
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;
#
# 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);
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);
index 990ee02335a2e2693e32baa82b259c23843f2aa0..008456b675b6e5c8a5a07e0b8628a41e3acc733a 100644 (file)
--- a/fsck.h
+++ b/fsck.h
* 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);
index bfb6508ad0f0a49b6e7006619920fd00e768d7f3..cc5aaa76f10021018fd5a5ea84ae9912d3633b69 100644 (file)
--- a/git.c
+++ b/git.c
/*
* 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.
*/
index b7879f8c66ee838f9603330b7083f65ff215012b..06fbeb6c2416d0c1c5fd7df1a12924656592cdc3 100644 (file)
--- a/graph.c
+++ b/graph.c
* 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().
diff --git a/levenshtein.c b/levenshtein.c
index a32f4cdc458f823f7e8754742d2f8e21b2aabff3..fc281597fd2fd5ad2299eab0848da99355e383fc 100644 (file)
--- a/levenshtein.c
+++ b/levenshtein.c
*
* 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:
*
diff --git a/parse-options.h b/parse-options.h
index f8ef1db1289f85e0877b66d4573044d962df934e..b54eec128bcda1a8b4c4a2c33f2ce799c506ac23 100644 (file)
--- a/parse-options.h
+++ b/parse-options.h
*
* `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.
*
* `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
{ 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,
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,
diff --git a/revision.c b/revision.c
index bd0ea34af0c229f0e874503cb3146957f1c61853..18b7ebbbd599417462b5c4275c2581b91ebeca6a 100644 (file)
--- a/revision.c
+++ b/revision.c
@@ -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) {
diff --git a/strbuf.h b/strbuf.h
index 9ee908a3ec5d4d5329385bc10cdd676f703c0c1f..eaa8704d5fa6e85d33953db77dd03de3cb462df4 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
* 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
diff --git a/tree-diff.c b/tree-diff.c
index b05d0f43555d28f872fd5225e6773eeb636ef302..edd83949bf0896bedff4cab8e2b037eba574a45e 100644 (file)
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -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];
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 02184d9cde2e27d14c8c2845d7e2c4eb7f0c9b09..1ebab687f77218d1520a4527214170eeab176d31 100644 (file)
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
/*
* 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;