Skip to content

Commit 15beaaa

Browse files
newrengitster
authored andcommitted
Fix spelling errors in code comments
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 8915297 commit 15beaaa

35 files changed

+52
-52
lines changed

apply.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,8 +4183,8 @@ static void show_rename_copy(struct patch *p)
41834183
old_name = slash_old + 1;
41844184
new_name = slash_new + 1;
41854185
}
4186-
/* p->old_name thru old_name is the common prefix, and old_name and new_name
4187-
* through the end of names are renames
4186+
/* p->old_name through old_name is the common prefix, and old_name and
4187+
* new_name through the end of names are renames
41884188
*/
41894189
if (old_name != p->old_name)
41904190
printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ static int do_fetch(struct transport *transport,
14001400

14011401
/*
14021402
* We're setting the upstream configuration for the
1403-
* current branch. The relevent upstream is the
1403+
* current branch. The relevant upstream is the
14041404
* fetched branch that is meant to be merged with the
14051405
* current one, i.e. the one fetched to FETCH_HEAD.
14061406
*

builtin/gc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
458458
/*
459459
* Returns 0 if there was no previous error and gc can proceed, 1 if
460460
* gc should not proceed due to an error in the last run. Prints a
461-
* message and returns -1 if an error occured while reading gc.log
461+
* message and returns -1 if an error occurred while reading gc.log
462462
*/
463463
static int report_last_gc_error(void)
464464
{
@@ -601,7 +601,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
601601
if (detach_auto) {
602602
int ret = report_last_gc_error();
603603
if (ret < 0)
604-
/* an I/O error occured, already reported */
604+
/* an I/O error occurred, already reported */
605605
exit(128);
606606
if (ret == 1)
607607
/* Last gc --auto failed. Skip this one. */

builtin/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static void *get_delta(struct object_entry *entry)
163163
delta_buf = diff_delta(base_buf, base_size,
164164
buf, size, &delta_size, 0);
165165
/*
166-
* We succesfully computed this delta once but dropped it for
166+
* We successfully computed this delta once but dropped it for
167167
* memory reasons. Something is very wrong if this time we
168168
* recompute and create a different delta.
169169
*/

commit-graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static void prepare_commit_graph_one(struct repository *r, const char *obj_dir)
461461
/*
462462
* Return 1 if commit_graph is non-NULL, and 0 otherwise.
463463
*
464-
* On the first invocation, this function attemps to load the commit
464+
* On the first invocation, this function attempts to load the commit
465465
* graph if the_repository is configured to have one.
466466
*/
467467
static int prepare_commit_graph(struct repository *r)

commit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const void *repo_get_commit_buffer(struct repository *r,
132132
#endif
133133

134134
/*
135-
* Tell the commit subsytem that we are done with a particular commit buffer.
135+
* Tell the commit subsystem that we are done with a particular commit buffer.
136136
* The commit and buffer should be the input and return value, respectively,
137137
* from an earlier call to get_commit_buffer. The buffer may or may not be
138138
* freed by this call; callers should not access the memory afterwards.

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen);
558558

559559
/*
560560
* A critical section used in the implementation of the spawn
561-
* functions (mingw_spawnv[p]e()) and waitpid(). Intialised in
561+
* functions (mingw_spawnv[p]e()) and waitpid(). Initialised in
562562
* the replacement main() macro below.
563563
*/
564564
extern CRITICAL_SECTION pinfo_cs;

compat/vcbuild/find_vs_env.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ REM and MAKE, we must blend these two different worlds. This script
1818
REM attempts to do that.
1919
REM ================================================================
2020
REM This BAT file starts in a plain (non-developer) command prompt,
21-
REM searches for the "best" commmand prompt setup script, installs
21+
REM searches for the "best" command prompt setup script, installs
2222
REM it into the current CMD process, and exports the various MSVC
2323
REM environment variables for use by MAKE.
2424
REM

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ AC_DEFUN([GIT_PARSE_WITH],
8585

8686
# GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
8787
# -----------------------------------------------------
88-
# Set VAR to the value specied by --with-WITHNAME.
88+
# Set VAR to the value specified by --with-WITHNAME.
8989
# No verification of arguments is performed, but warnings are issued
9090
# if either 'yes' or 'no' is specified.
9191
# HELP_TEXT is presented when --help is called.

contrib/coccinelle/commit.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ expression s;
2020
+ set_commit_tree(c, s)
2121
...>}
2222

23-
// These excluded functions must access c->maybe_tree direcly.
23+
// These excluded functions must access c->maybe_tree directly.
2424
// Note that if c->maybe_tree is written somewhere outside of these
2525
// functions, then the recommended transformation will be bogus with
2626
// repo_get_commit_tree() on the LHS.

0 commit comments

Comments
 (0)