Skip to content

Commit 1bc8dec

Browse files
authored
Merge pull request libgit2#5797 from aaronfranke/typos
Fix some typos
2 parents 922d73c + 7efddeb commit 1bc8dec

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

examples/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "common.h"
1616

17-
/* Define the printf format specifer to use for size_t output */
17+
/* Define the printf format specifier to use for size_t output */
1818
#if defined(_MSC_VER) || defined(__MINGW32__)
1919
# define PRIuZ "Iu"
2020
# define PRIxZ "Ix"

examples/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#endif
3737

3838
#ifndef PRIuZ
39-
/* Define the printf format specifer to use for size_t output */
39+
/* Define the printf format specifier to use for size_t output */
4040
#if defined(_MSC_VER) || defined(__MINGW32__)
4141
# define PRIuZ "Iu"
4242
#else

examples/tag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static void action_delete_tag(tag_state *state)
188188
git_object_free(obj);
189189
}
190190

191-
static void action_create_lighweight_tag(tag_state *state)
191+
static void action_create_lightweight_tag(tag_state *state)
192192
{
193193
git_repository *repo = state->repo;
194194
struct tag_options *opts = state->opts;
@@ -260,7 +260,7 @@ static void parse_options(tag_action *action, struct tag_options *opts, int argc
260260
print_usage();
261261

262262
if (*action != &action_create_tag)
263-
*action = &action_create_lighweight_tag;
263+
*action = &action_create_lightweight_tag;
264264
} else if (!strcmp(curr, "-n")) {
265265
opts->num_lines = 1;
266266
*action = &action_list_tags;

src/cc-compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#define GIT_UNUSED(x) ((void)(x))
4747

48-
/* Define the printf format specifer to use for size_t output */
48+
/* Define the printf format specifier to use for size_t output */
4949
#if defined(_MSC_VER) || defined(__MINGW32__)
5050

5151
/* Visual Studio 2012 and prior lack PRId64 entirely */

src/refs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ const char *git_reference__shorthand(const char *name)
13431343
else if (!git__prefixcmp(name, GIT_REFS_DIR))
13441344
return name + strlen(GIT_REFS_DIR);
13451345

1346-
/* No shorthands are avaiable, so just return the name */
1346+
/* No shorthands are available, so just return the name. */
13471347
return name;
13481348
}
13491349

src/remote.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int write_add_refspec(git_repository *repo, const char *name, const char
121121
return error;
122122

123123
/*
124-
* "$^" is a unmatcheable regexp: it will not match anything at all, so
124+
* "$^" is an unmatchable regexp: it will not match anything at all, so
125125
* all values will be considered new and we will not replace any
126126
* present value.
127127
*/
@@ -1317,7 +1317,7 @@ int git_remote_prune(git_remote *remote, const git_remote_callbacks *callbacks)
13171317
if (error == GIT_ENOTFOUND)
13181318
continue;
13191319

1320-
/* if we did find a source, remove it from the candiates */
1320+
/* If we did find a source, remove it from the candidates. */
13211321
if ((error = git_vector_set((void **) &src_name, &candidates, i, NULL)) < 0)
13221322
goto cleanup;
13231323

@@ -1682,7 +1682,7 @@ int git_remote_update_tips(
16821682
goto out;
16831683
}
16841684

1685-
/* only try to do opportunisitic updates if the refpec lists differ */
1685+
/* Only try to do opportunistic updates if the refpec lists differ. */
16861686
if (remote->passed_refspecs)
16871687
error = opportunistic_updates(remote, callbacks, &refs, reflog_message);
16881688

src/transports/winhttp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static int acquire_fallback_cred(
268268
pISM->lpVtbl->Release(pISM);
269269
}
270270

271-
/* Only unitialize if the call to CoInitializeEx was successful. */
271+
/* Only uninitialize if the call to CoInitializeEx was successful. */
272272
if (SUCCEEDED(hCoInitResult))
273273
CoUninitialize();
274274
}

src/win32/w32_leakcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ int git_win32_leakcheck_stacktrace_dump(
513513
*/
514514
void git_win32_leakcheck_stacktrace_cleanup(void)
515515
{
516-
/* At shutdown/cleanup, dump cummulative leak info
516+
/* At shutdown/cleanup, dump cumulative leak info
517517
* with everything since startup. This might generate
518518
* extra noise if the caller has been doing checkpoint
519519
* dumps, but it might also eliminate some false

0 commit comments

Comments
 (0)