Skip to content

Commit 3ea3c21

Browse files
MikeRalphsongitster
authored andcommitted
Fix typos / spelling in comments
Signed-off-by: Mike Ralphson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bad542f commit 3ea3c21

20 files changed

+27
-27
lines changed

builtin-checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static int checkout_merged(int pos, struct checkout *state)
178178
/*
179179
* NEEDSWORK:
180180
* There is absolutely no reason to write this as a blob object
181-
* and create a phoney cache entry just to leak. This hack is
181+
* and create a phony cache entry just to leak. This hack is
182182
* primarily to get to the write_entry() machinery that massages
183183
* the contents to work-tree format and writes out which only
184184
* allows it for a cache entry. The code in write_entry() needs

builtin-ls-files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
512512

513513
pathspec = get_pathspec(prefix, argv);
514514

515-
/* be nice with submodule patsh ending in a slash */
515+
/* be nice with submodule paths ending in a slash */
516516
read_cache();
517517
if (pathspec)
518518
strip_trailing_slash_from_submodules();

builtin-pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static unsigned long write_object(struct sha1file *f,
293293
die("unable to read %s", sha1_to_hex(entry->idx.sha1));
294294
/*
295295
* make sure no cached delta data remains from a
296-
* previous attempt before a pack split occured.
296+
* previous attempt before a pack split occurred.
297297
*/
298298
free(entry->delta_data);
299299
entry->delta_data = NULL;

builtin-reflog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static void mark_reachable(struct commit *commit, unsigned long expire_limit)
243243
* We need to compute if commit on either side of an reflog
244244
* entry is reachable from the tip of the ref for all entries.
245245
* Mark commits that are reachable from the tip down to the
246-
* time threashold first; we know a commit marked thusly is
246+
* time threshold first; we know a commit marked thusly is
247247
* reachable from the tip without running in_merge_bases()
248248
* at all.
249249
*/

builtin-reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
228228
}
229229
/*
230230
* Otherwise, argv[i] could be either <rev> or <paths> and
231-
* has to be unambigous.
231+
* has to be unambiguous.
232232
*/
233233
else if (!get_sha1(argv[i], sha1)) {
234234
/*

compat/cygwin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int cygwin_stat(const char *path, struct stat *buf)
9292
* Reading this option is not always possible immediately as git_dir may be
9393
* not be set yet. So until it is set, use cygwin lstat/stat functions.
9494
* However, if core.filemode is set, we must use the Cygwin posix
95-
* stat/lstat as the Windows stat fuctions do not determine posix filemode.
95+
* stat/lstat as the Windows stat functions do not determine posix filemode.
9696
*
9797
* Note that git_cygwin_config() does NOT call git_default_config() and this
9898
* is deliberate. Many commands read from config to establish initial

compat/fnmatch/fnmatch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# include <stdlib.h>
4040
#endif
4141

42-
/* For platform which support the ISO C amendement 1 functionality we
42+
/* For platform which support the ISO C amendment 1 functionality we
4343
support user defined character classes. */
4444
#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
4545
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
@@ -90,7 +90,7 @@
9090

9191
# if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
9292
/* The GNU C library provides support for user-defined character classes
93-
and the functions from ISO C amendement 1. */
93+
and the functions from ISO C amendment 1. */
9494
# ifdef CHARCLASS_NAME_MAX
9595
# define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX
9696
# else

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ int poll(struct pollfd *ufds, unsigned int nfds, int timeout)
396396
* its own input data to become available. But since
397397
* the process (pack-objects) is itself CPU intensive,
398398
* it will happily pick up the time slice that we are
399-
* relinguishing here.
399+
* relinquishing here.
400400
*/
401401
Sleep(0);
402402
goto repeat;

compat/regex/regex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ regex_compile (pattern, size, syntax, bufp)
10431043
they can be reliably used as array indices. */
10441044
register unsigned char c, c1;
10451045

1046-
/* A random tempory spot in PATTERN. */
1046+
/* A random temporary spot in PATTERN. */
10471047
const char *p1;
10481048

10491049
/* Points to the end of the buffer, where we should append. */
@@ -1796,7 +1796,7 @@ regex_compile (pattern, size, syntax, bufp)
17961796
we're all done, the pattern will look like:
17971797
set_number_at <jump count> <upper bound>
17981798
set_number_at <succeed_n count> <lower bound>
1799-
succeed_n <after jump addr> <succed_n count>
1799+
succeed_n <after jump addr> <succeed_n count>
18001800
<body of loop>
18011801
jump_n <succeed_n addr> <jump count>
18021802
(The upper bound and `jump_n' are omitted if

diffcore-rename.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int find_identical_files(struct file_similarity *src,
267267
int score;
268268
struct diff_filespec *source = p->filespec;
269269

270-
/* False hash collission? */
270+
/* False hash collision? */
271271
if (hashcmp(source->sha1, target->sha1))
272272
continue;
273273
/* Non-regular files? If so, the modes must match! */

0 commit comments

Comments
 (0)