summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Apostolou <dimitris.apostolou@icloud.com>2022-01-05 12:18:05 +0200
committerDimitris Apostolou <dimitris.apostolou@icloud.com>2022-01-05 16:35:52 +0200
commit90df43022a011f23f13b7a77a956e3f64e4134a5 (patch)
treeb7a0a0e24c5dae8bdb277954c33f75d822503af6
parent82f526a9129373d899782c411774c8e396cae4e4 (diff)
downloadlibgit2-90df43022a011f23f13b7a77a956e3f64e4134a5.tar.gz
Fix typos
-rw-r--r--cmake/FindGSSAPI.cmake2
-rw-r--r--docs/release.md2
-rw-r--r--examples/blame.c4
-rw-r--r--include/git2/attr.h2
-rw-r--r--include/git2/clone.h4
-rw-r--r--include/git2/describe.h2
-rw-r--r--include/git2/diff.h4
-rw-r--r--include/git2/odb.h2
-rw-r--r--include/git2/reflog.h2
-rw-r--r--include/git2/refs.h2
-rw-r--r--include/git2/remote.h2
-rw-r--r--include/git2/repository.h10
-rw-r--r--include/git2/reset.h2
-rw-r--r--include/git2/submodule.h2
-rw-r--r--include/git2/tree.h2
-rw-r--r--include/git2/types.h2
-rw-r--r--src/attr.c2
-rw-r--r--src/branch.c2
-rw-r--r--src/cc-compat.h2
-rw-r--r--src/checkout.c2
-rw-r--r--src/config.h2
-rw-r--r--src/fs_path.c2
-rw-r--r--src/futils.h4
-rw-r--r--src/hash/sha1/sha1dc/sha1.c2
-rw-r--r--src/index.c2
-rw-r--r--src/indexer.c2
-rw-r--r--src/khash.h2
-rw-r--r--src/merge.c4
-rw-r--r--src/mwindow.c2
-rw-r--r--src/odb_pack.c2
-rw-r--r--src/patch_parse.c2
-rw-r--r--src/regexp.c2
-rw-r--r--src/repository.c10
-rw-r--r--src/revwalk.c2
-rw-r--r--src/status.c2
-rw-r--r--src/streams/openssl_dynamic.h6
-rw-r--r--src/transports/smart_protocol.c2
-rw-r--r--src/transports/ssh.c2
-rw-r--r--src/tree.c2
-rw-r--r--src/win32/path_w32.c2
-rw-r--r--src/win32/posix_w32.c2
-rw-r--r--src/win32/w32_leakcheck.c2
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/checkout/tree.c6
-rw-r--r--tests/clar_libgit2_timer.h4
-rw-r--r--tests/commit/write.c2
-rw-r--r--tests/config/multivar.c2
-rw-r--r--tests/core/rmdir.c4
-rw-r--r--tests/core/structinit.c2
-rw-r--r--tests/diff/rename.c2
-rw-r--r--tests/index/tests.c12
-rw-r--r--tests/network/url/parse.c2
-rw-r--r--tests/object/raw/convert.c2
-rw-r--r--tests/object/tree/read.c2
-rw-r--r--tests/path/core.c2
-rw-r--r--tests/path/win32.c2
-rw-r--r--tests/refs/branches/delete.c2
-rw-r--r--tests/submodule/update.c4
58 files changed, 83 insertions, 83 deletions
diff --git a/cmake/FindGSSAPI.cmake b/cmake/FindGSSAPI.cmake
index 0f5932a22..a11d72a67 100644
--- a/cmake/FindGSSAPI.cmake
+++ b/cmake/FindGSSAPI.cmake
@@ -5,7 +5,7 @@
# GSSAPI_ROOT_DIR - Set this variable to the root installation of GSSAPI
#
# Read-Only variables:
-# GSSAPI_FLAVOR_MIT - set to TURE if MIT Kerberos has been found
+# GSSAPI_FLAVOR_MIT - set to TRUE if MIT Kerberos has been found
# GSSAPI_FLAVOR_HEIMDAL - set to TRUE if Heimdal Kerberos has been found
# GSSAPI_FOUND - system has GSSAPI
# GSSAPI_INCLUDE_DIR - the GSSAPI include directory
diff --git a/docs/release.md b/docs/release.md
index 3200c4449..87fccaabe 100644
--- a/docs/release.md
+++ b/docs/release.md
@@ -80,4 +80,4 @@ and run it against our description file with the tip of `main` checked out.
cm doc api.docurium
-It will start up a few proceses and write out the results as a new commit onto the `gh-pages` branch. That can be pushed to GitHub to update what will show up on our documentation reference site.
+It will start up a few processes and write out the results as a new commit onto the `gh-pages` branch. That can be pushed to GitHub to update what will show up on our documentation reference site.
diff --git a/examples/blame.c b/examples/blame.c
index 954c97b17..77087a577 100644
--- a/examples/blame.c
+++ b/examples/blame.c
@@ -49,7 +49,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
if (o.F) blameopts.flags |= GIT_BLAME_FIRST_PARENT;
/**
- * The commit range comes in "commitish" form. Use the rev-parse API to
+ * The commit range comes in "committish" form. Use the rev-parse API to
* nail down the end points.
*/
if (o.commitspec) {
@@ -70,7 +70,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
/**
* Get the raw data inside the blob for output. We use the
- * `commitish:path/to/file.txt` format to find it.
+ * `committish:path/to/file.txt` format to find it.
*/
if (git_oid_is_zero(&blameopts.newest_commit))
strcpy(spec, "HEAD");
diff --git a/include/git2/attr.h b/include/git2/attr.h
index 157192c9d..04f3c7c29 100644
--- a/include/git2/attr.h
+++ b/include/git2/attr.h
@@ -344,7 +344,7 @@ GIT_EXTERN(int) git_attr_cache_flush(
* Add a macro definition.
*
* Macros will automatically be loaded from the top level `.gitattributes`
- * file of the repository (plus the build-in "binary" macro). This
+ * file of the repository (plus the built-in "binary" macro). This
* function allows you to add others. For example, to add the default
* macro, you would call:
*
diff --git a/include/git2/clone.h b/include/git2/clone.h
index c517ec3d6..3481f254c 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -74,8 +74,8 @@ typedef int GIT_CALLBACK(git_remote_create_cb)(
void *payload);
/**
- * The signature of a function matchin git_repository_init, with an
- * aditional void * as callback payload.
+ * The signature of a function matching git_repository_init, with an
+ * additional void * as callback payload.
*
* Callers of git_clone my provide a function matching this signature
* to override the repository creation and customization process
diff --git a/include/git2/describe.h b/include/git2/describe.h
index e8afd6879..aaccbcd6f 100644
--- a/include/git2/describe.h
+++ b/include/git2/describe.h
@@ -152,7 +152,7 @@ GIT_EXTERN(int) git_describe_commit(
* Describe a commit
*
* Perform the describe operation on the current commit and the
- * worktree. After peforming describe on HEAD, a status is run and the
+ * worktree. After performing describe on HEAD, a status is run and the
* description is considered to be dirty if there are.
*
* @param out pointer to store the result. You must free this once
diff --git a/include/git2/diff.h b/include/git2/diff.h
index c040cd190..a820a57c5 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -758,7 +758,7 @@ typedef struct {
uint16_t copy_threshold;
/**
- * Treshold below which similar files will be split into a delete/add pair.
+ * Threshold below which similar files will be split into a delete/add pair.
* This is equivalent to the last part of the -B option. Defaults to 60.
*/
uint16_t break_rewrite_threshold;
@@ -1317,7 +1317,7 @@ typedef enum {
/**
* Accumulate diff statistics for all patches.
*
- * @param out Structure containg the diff statistics.
+ * @param out Structure containing the diff statistics.
* @param diff A git_diff generated by one of the above functions.
* @return 0 on success; non-zero on error
*/
diff --git a/include/git2/odb.h b/include/git2/odb.h
index 0691aa4d0..9eaf897f8 100644
--- a/include/git2/odb.h
+++ b/include/git2/odb.h
@@ -578,7 +578,7 @@ GIT_EXTERN(int) git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t
/**
* Set the git commit-graph for the ODB.
*
- * After a successfull call, the ownership of the cgraph parameter will be
+ * After a successful call, the ownership of the cgraph parameter will be
* transferred to libgit2, and the caller should not free it.
*
* The commit-graph can also be unset by explicitly passing NULL as the cgraph
diff --git a/include/git2/reflog.h b/include/git2/reflog.h
index c949a28f0..ec365c1fa 100644
--- a/include/git2/reflog.h
+++ b/include/git2/reflog.h
@@ -31,7 +31,7 @@ GIT_BEGIN_DECL
* git_reflog_free().
*
* @param out pointer to reflog
- * @param repo the repostiory
+ * @param repo the repository
* @param name reference to look up
* @return 0 or an error code
*/
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 3a0095bb6..06f8bb97c 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -57,7 +57,7 @@ GIT_EXTERN(int) git_reference_name_to_id(
/**
* Lookup a reference by DWIMing its short name
*
- * Apply the git precendence rules to the given shorthand to determine
+ * Apply the git precedence rules to the given shorthand to determine
* which reference the user is referring to.
*
* @param out pointer in which to store the reference
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 088f528a6..351850db0 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -893,7 +893,7 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks
/**
* Perform a push
*
- * Peform all the steps from a push.
+ * Perform all the steps from a push.
*
* @param remote the remote to push to
* @param refspecs the refspecs to use for pushing. If NULL or an empty
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 8bd877be4..fa37d0fb8 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -808,19 +808,19 @@ GIT_EXTERN(int) git_repository_set_head(
* If the provided committish cannot be found in the repository, the HEAD
* is unaltered and GIT_ENOTFOUND is returned.
*
- * If the provided commitish cannot be peeled into a commit, the HEAD
+ * If the provided committish cannot be peeled into a commit, the HEAD
* is unaltered and -1 is returned.
*
* Otherwise, the HEAD will eventually be detached and will directly point to
* the peeled Commit.
*
* @param repo Repository pointer
- * @param commitish Object id of the Commit the HEAD should point to
+ * @param committish Object id of the Commit the HEAD should point to
* @return 0 on success, or an error code
*/
GIT_EXTERN(int) git_repository_set_head_detached(
git_repository *repo,
- const git_oid *commitish);
+ const git_oid *committish);
/**
* Make the repository HEAD directly point to the Commit.
@@ -836,7 +836,7 @@ GIT_EXTERN(int) git_repository_set_head_detached(
*/
GIT_EXTERN(int) git_repository_set_head_detached_from_annotated(
git_repository *repo,
- const git_annotated_commit *commitish);
+ const git_annotated_commit *committish);
/**
* Detach the HEAD.
@@ -846,7 +846,7 @@ GIT_EXTERN(int) git_repository_set_head_detached_from_annotated(
* If the HEAD is already detached and points to a Tag, the HEAD is
* updated into making it point to the peeled Commit, and 0 is returned.
*
- * If the HEAD is already detached and points to a non commitish, the HEAD is
+ * If the HEAD is already detached and points to a non committish, the HEAD is
* unaltered, and -1 is returned.
*
* Otherwise, the HEAD will be detached and point to the peeled Commit.
diff --git a/include/git2/reset.h b/include/git2/reset.h
index 7a471bdd0..b2ee2ba7b 100644
--- a/include/git2/reset.h
+++ b/include/git2/reset.h
@@ -48,7 +48,7 @@ typedef enum {
*
* @param target Committish to which the Head should be moved to. This object
* must belong to the given `repo` and can either be a git_commit or a
- * git_tag. When a git_tag is being passed, it should be dereferencable
+ * git_tag. When a git_tag is being passed, it should be dereferenceable
* to a git_commit which oid will be used as the target of the branch.
*
* @param reset_type Kind of reset operation to perform.
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index c6eeb96dc..319a6056e 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -181,7 +181,7 @@ GIT_EXTERN(int) git_submodule_update_options_init(
* @param submodule Submodule object
* @param init If the submodule is not initialized, setting this flag to true
* will initialize the submodule before updating. Otherwise, this will
- * return an error if attempting to update an uninitialzed repository.
+ * return an error if attempting to update an uninitialized repository.
* but setting this to true forces them to be updated.
* @param options configuration options for the update. If NULL, the
* function works as though GIT_SUBMODULE_UPDATE_OPTIONS_INIT was passed.
diff --git a/include/git2/tree.h b/include/git2/tree.h
index db24bf6ed..0a33f0b4a 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -255,7 +255,7 @@ GIT_EXTERN(int) git_treebuilder_new(
git_treebuilder **out, git_repository *repo, const git_tree *source);
/**
- * Clear all the entires in the builder
+ * Clear all the entries in the builder
*
* @param bld Builder to clear
* @return 0 on success; error code otherwise
diff --git a/include/git2/types.h b/include/git2/types.h
index 34d8c99ef..d4b033dc7 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -236,7 +236,7 @@ typedef struct git_refspec git_refspec;
/**
* Git's idea of a remote repository. A remote can be anonymous (in
- * which case it does not have backing configuration entires).
+ * which case it does not have backing configuration entries).
*/
typedef struct git_remote git_remote;
diff --git a/src/attr.c b/src/attr.c
index 409c30b01..1623b1d45 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -646,7 +646,7 @@ static int collect_attr_files(
if (error < 0)
goto cleanup;
- /* in precendence order highest to lowest:
+ /* in precedence order highest to lowest:
* - $GIT_DIR/info/attributes
* - path components with .gitattributes
* - config core.attributesfile
diff --git a/src/branch.c b/src/branch.c
index cf985f153..03892a4b0 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -707,7 +707,7 @@ int git_branch_set_upstream(git_reference *branch, const char *branch_name)
if (error < 0)
goto on_error;
- /* Update the upsteam branch config with the new name */
+ /* Update the upstream branch config with the new name */
if (git_str_printf(&key, "branch.%s.remote", shortname) < 0)
goto on_error;
diff --git a/src/cc-compat.h b/src/cc-compat.h
index f701b2d93..a0971e86c 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -75,7 +75,7 @@
# define PRIdZ "zd"
#endif
-/* Micosoft Visual C/C++ */
+/* Microsoft Visual C/C++ */
#if defined(_MSC_VER)
/* disable "deprecated function" warnings */
# pragma warning ( disable : 4996 )
diff --git a/src/checkout.c b/src/checkout.c
index 11be2e84f..341ed0879 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -963,7 +963,7 @@ static int checkout_conflicts_load(checkout_data *data, git_iterator *workdir, g
{
git_index *index;
- /* Only write conficts from sources that have them: indexes. */
+ /* Only write conflicts from sources that have them: indexes. */
if ((index = git_iterator_index(data->target)) == NULL)
return 0;
diff --git a/src/config.h b/src/config.h
index 5dfc9da71..01b84b157 100644
--- a/src/config.h
+++ b/src/config.h
@@ -96,7 +96,7 @@ int git_config_lookup_map_enum(git_configmap_t *type_out,
/**
* Unlock the backend with the highest priority
*
- * Unlocking will allow other writers to updat the configuration
+ * Unlocking will allow other writers to update the configuration
* file. Optionally, any changes performed since the lock will be
* applied to the configuration.
*
diff --git a/src/fs_path.c b/src/fs_path.c
index 957f389cc..c9f03a7c3 100644
--- a/src/fs_path.c
+++ b/src/fs_path.c
@@ -136,7 +136,7 @@ Exit:
/*
* Determine if the path is a Windows prefix and, if so, returns
- * its actual lentgh. If it is not a prefix, returns -1.
+ * its actual length. If it is not a prefix, returns -1.
*/
static int win32_prefix_length(const char *path, int len)
{
diff --git a/src/futils.h b/src/futils.h
index 1386dc482..f0d7ec3b0 100644
--- a/src/futils.h
+++ b/src/futils.h
@@ -231,10 +231,10 @@ typedef enum {
* Copy a directory tree.
*
* This copies directories and files from one root to another. You can
- * pass a combinationof GIT_CPDIR flags as defined above.
+ * pass a combination of GIT_CPDIR flags as defined above.
*
* If you pass the CHMOD flag, then the dirmode will be applied to all
- * directories that are created during the copy, overiding the natural
+ * directories that are created during the copy, overriding the natural
* permissions. If you do not pass the CHMOD flag, then the dirmode
* will actually be copied from the source files and the `dirmode` arg
* will be ignored.
diff --git a/src/hash/sha1/sha1dc/sha1.c b/src/hash/sha1/sha1dc/sha1.c
index 4d03c75d8..929822728 100644
--- a/src/hash/sha1/sha1dc/sha1.c
+++ b/src/hash/sha1/sha1dc/sha1.c
@@ -70,7 +70,7 @@
/* Not under GCC-alike or glibc */
#elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN)
/*
- * *BSD and newlib (embeded linux, cygwin, etc).
+ * *BSD and newlib (embedded linux, cygwin, etc).
* the defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN) part prevents
* this condition from matching with Solaris/sparc.
* (Solaris defines only one endian macro)
diff --git a/src/index.c b/src/index.c
index a2d80bc6e..367fd9c38 100644
--- a/src/index.c
+++ b/src/index.c
@@ -3499,7 +3499,7 @@ static int index_apply_to_wd_diff(git_index *index, int action, const git_strarr
}
/*
- * We do the matching ourselves intead of passing the list to
+ * We do the matching ourselves instead of passing the list to
* diff because we want to tell the callback which one
* matched, which we do not know if we ask diff to filter for us.
*/
diff --git a/src/indexer.c b/src/indexer.c
index ff60b4005..16db9ca8d 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -1123,7 +1123,7 @@ static int update_header_and_rehash(git_indexer *idx, git_indexer_progress *stat
git_hash_init(&idx->trailer);
- /* Update the header to include the numer of local objects we injected */
+ /* Update the header to include the number of local objects we injected */
idx->hdr.hdr_entries = htonl(stats->total_objects + stats->local_objects);
if (write_at(idx, &idx->hdr, 0, sizeof(struct git_pack_header)) < 0)
return -1;
diff --git a/src/khash.h b/src/khash.h
index 7adccdb00..c9b7f131f 100644
--- a/src/khash.h
+++ b/src/khash.h
@@ -564,7 +564,7 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key)
code; \
} }
-/* More conenient interfaces */
+/* More convenient interfaces */
/*! @function
@abstract Instantiate a hash set containing integer keys
diff --git a/src/merge.c b/src/merge.c
index ec7e5bfd1..c871630c6 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -3019,10 +3019,10 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
*conflicts = 0;
/* We need to have merged at least 1 file for the possibility to exist to
- * have conflicts with the workdir. Passing 0 as the pathspec count paramter
+ * have conflicts with the workdir. Passing 0 as the pathspec count parameter
* will consider all files in the working directory, that is, we may detect
* a conflict if there were untracked files in the workdir prior to starting
- * the merge. This typically happens when cherry-picking a commmit whose
+ * the merge. This typically happens when cherry-picking a commit whose
* changes have already been applied.
*/
if (merged_paths->length == 0)
diff --git a/src/mwindow.c b/src/mwindow.c
index da2dae2b9..d06b7a80e 100644
--- a/src/mwindow.c
+++ b/src/mwindow.c
@@ -473,7 +473,7 @@ int git_mwindow_file_register(git_mwindow_file *mwf)
git_mwindow_find_lru_file_locked(&lru_file) == 0) {
if ((error = git_vector_insert(&closed_files, lru_file)) < 0) {
/*
- * Exceeding the file limit seems preferrable to being open to
+ * Exceeding the file limit seems preferable to being open to
* data races that can end up corrupting the heap.
*/
break;
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 5b7521029..818cc6125 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -115,7 +115,7 @@ struct pack_writepack {
* | OID can be found. If we can find the offset to that SHA1 inside of the
* | index, that means the object is contained inside of the packfile and
* | we can stop searching. Before returning, we verify that the
- * | packfile behing the index we are searching still exists on disk.
+ * | packfile behind the index we are searching still exists on disk.
* |
* |-# pack_entry_find_offset
* | Mmap the actual index file to disk if it hasn't been opened
diff --git a/src/patch_parse.c b/src/patch_parse.c
index 37822fccc..78cd96252 100644
--- a/src/patch_parse.c
+++ b/src/patch_parse.c
@@ -353,7 +353,7 @@ static int parse_header_start(git_patch_parsed *patch, git_patch_parse_ctx *ctx)
* We cannot expect to be able to always parse paths correctly at this
* point. Due to the possibility of unquoted names, whitespaces in
* filenames and custom prefixes we have to allow that, though, and just
- * proceeed here. We then hope for the "---" and "+++" lines to fix that
+ * proceed here. We then hope for the "---" and "+++" lines to fix that
* for us.
*/
if (!git_parse_ctx_contains(&ctx->parse_ctx, "\n", 1) &&
diff --git a/src/regexp.c b/src/regexp.c
index c1b9ef4cd..2569dea0a 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -45,7 +45,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches,
int error;
size_t i;
- /* The ovec array always needs to be a mutiple of three */
+ /* The ovec array always needs to be a multiple of three */
if (nmatches <= ARRAY_SIZE(static_ovec) / 3)
ovec = static_ovec;
else
diff --git a/src/repository.c b/src/repository.c
index 8059f1081..80b4a98eb 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -3027,19 +3027,19 @@ cleanup:
int git_repository_set_head_detached(
git_repository *repo,
- const git_oid *commitish)
+ const git_oid *committish)
{
- return detach(repo, commitish, NULL);
+ return detach(repo, committish, NULL);
}
int git_repository_set_head_detached_from_annotated(
git_repository *repo,
- const git_annotated_commit *commitish)
+ const git_annotated_commit *committish)
{
GIT_ASSERT_ARG(repo);
- GIT_ASSERT_ARG(commitish);
+ GIT_ASSERT_ARG(committish);
- return detach(repo, git_annotated_commit_id(commitish), commitish->description);
+ return detach(repo, git_annotated_commit_id(committish), committish->description);
}
int git_repository_detach_head(git_repository *repo)
diff --git a/src/revwalk.c b/src/revwalk.c
index e29e9c9b9..553e0497a 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -427,7 +427,7 @@ static int add_parents_to_list(git_revwalk *walk, git_commit_list_node *commit,
return 0;
}
-/* How many unintersting commits we want to look at after we run out of interesting ones */
+/* How many uninteresting commits we want to look at after we run out of interesting ones */
#define SLOP 5
static int still_interesting(git_commit_list *list, int64_t time, int slop)
diff --git a/src/status.c b/src/status.c
index c98564643..c653122a2 100644
--- a/src/status.c
+++ b/src/status.c
@@ -84,7 +84,7 @@ static unsigned int workdir_delta2status(
if (!git_oid_equal(&idx2wd->old_file.id, &idx2wd->new_file.id)) {
/* if OIDs don't match, we might need to calculate them now to
- * discern between RENAMED vs RENAMED+MODIFED
+ * discern between RENAMED vs RENAMED+MODIFIED
*/
if (git_oid_is_zero(&idx2wd->old_file.id) &&
diff->old_src == GIT_ITERATOR_WORKDIR &&
diff --git a/src/streams/openssl_dynamic.h b/src/streams/openssl_dynamic.h
index 12d927a61..a99691910 100644
--- a/src/streams/openssl_dynamic.h
+++ b/src/streams/openssl_dynamic.h
@@ -13,7 +13,7 @@
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
- * the following conditions are aheared to. The following conditions
+ * the following conditions are adhered to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
@@ -38,7 +38,7 @@
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
- * The word 'cryptographic' can be left out if the rouines from the library
+ * The word 'cryptographic' can be left out if the routines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
@@ -56,7 +56,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * The licence and distribution terms for any publically available version or
+ * The licence and distribution terms for any publicly available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index a9a623cc7..e135f4596 100644
--- a/src/transports/smart_protocol.c
+++ b/src/transports/smart_protocol.c
@@ -137,7 +137,7 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec
{
const char *ptr;
- /* No refs or capabilites, odd but not a problem */
+ /* No refs or capabilities, odd but not a problem */
if (pkt == NULL || pkt->capabilities == NULL)
return GIT_ENOTFOUND;
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index e3bb5eef6..711f44af9 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -868,7 +868,7 @@ static int list_auth_methods(int *out, LIBSSH2_SESSION *session, const char *use
continue;
}
- /* Skipt it if we don't know it */
+ /* Skip it if we don't know it */
ptr = strchr(ptr, ',');
}
diff --git a/src/tree.c b/src/tree.c
index 7290e154d..a1545dc2d 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -605,7 +605,7 @@ static int write_tree(
/*
* This loop is unfortunate, but necessary. The index doesn't have
- * any directores, so we need to handle that manually, and we
+ * any directories, so we need to handle that manually, and we
* need to keep track of the current position.
*/
for (i = start; i < entries; ++i) {
diff --git a/src/win32/path_w32.c b/src/win32/path_w32.c
index 5d7ad11f6..0e6aff748 100644
--- a/src/win32/path_w32.c
+++ b/src/win32/path_w32.c
@@ -41,7 +41,7 @@ GIT_INLINE(int) path__cwd(wchar_t *path, int size)
}
/* The Win32 APIs may return "\\?\" once you've used it first.
- * But it may not. What a gloriously predictible API!
+ * But it may not. What a gloriously predictable API!
*/
if (wcsncmp(path, PATH__NT_NAMESPACE, PATH__NT_NAMESPACE_LEN))
return len;
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index ba46b5ea9..b6072411d 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -441,7 +441,7 @@ int p_symlink(const char *target, const char *path)
* not want to use `git_win32_path_from_utf8` for converting the target,
* as that function will automatically pre-pend the current working
* directory in case the path is not absolute. As Git will instead use
- * relative symlinks, this is not someting we want.
+ * relative symlinks, this is not something we want.
*/
if (git_win32_path_from_utf8(path_w, path) < 0 ||
git_win32_path_relative_from_utf8(target_w, target) < 0)
diff --git a/src/win32/w32_leakcheck.c b/src/win32/w32_leakcheck.c
index 5c8425be3..0f095de12 100644
--- a/src/win32/w32_leakcheck.c
+++ b/src/win32/w32_leakcheck.c
@@ -199,7 +199,7 @@ int git_win32_leakcheck_stack(
return 0;
}
-/* Strack tracing */
+/* Stack tracing */
#define STACKTRACE_UID_LEN (15)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index fdf194d0e..f293c158d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -2,7 +2,7 @@ set(Python_ADDITIONAL_VERSIONS 3 2.7)
find_package(PythonInterp)
if(NOT PYTHONINTERP_FOUND)
- message(FATAL_ERROR "Could not find a python interpeter, which is needed to build the tests. "
+ message(FATAL_ERROR "Could not find a python interpreter, which is needed to build the tests. "
"Make sure python is available, or pass -DBUILD_TESTS=OFF to skip building the tests")
ENDIF()
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index de7dd7d9a..d4b57f5d1 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -66,7 +66,7 @@ void test_checkout_tree__can_checkout_and_remove_directory(void)
{
cl_assert_equal_i(false, git_fs_path_isdir("./testrepo/ab/"));
- /* Checkout brach "subtrees" and update HEAD, so that HEAD matches the
+ /* Checkout branch "subtrees" and update HEAD, so that HEAD matches the
* current working tree
*/
cl_git_pass(git_revparse_single(&g_object, g_repo, "subtrees"));
@@ -81,7 +81,7 @@ void test_checkout_tree__can_checkout_and_remove_directory(void)
git_object_free(g_object);
g_object = NULL;
- /* Checkout brach "master" and update HEAD, so that HEAD matches the
+ /* Checkout branch "master" and update HEAD, so that HEAD matches the
* current working tree
*/
cl_git_pass(git_revparse_single(&g_object, g_repo, "master"));
@@ -537,7 +537,7 @@ static void assert_conflict(
g_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
cl_git_pass(git_checkout_tree(g_repo, g_object, &g_opts));
- /* Hack-ishy workaound to ensure *all* the index entries
+ /* Hack-ishy workaround to ensure *all* the index entries
* match the content of the tree
*/
cl_git_pass(git_object_peel(&hack_tree, g_object, GIT_OBJECT_TREE));
diff --git a/tests/clar_libgit2_timer.h b/tests/clar_libgit2_timer.h
index 0d150e018..7571a52e9 100644
--- a/tests/clar_libgit2_timer.h
+++ b/tests/clar_libgit2_timer.h
@@ -3,7 +3,7 @@
struct cl_perf_timer
{
- /* cummulative running time across all start..stop intervals */
+ /* cumulative running time across all start..stop intervals */
double sum;
/* value of last start..stop interval */
@@ -27,7 +27,7 @@ void cl_perf_timer__stop(cl_perf_timer *t);
double cl_perf_timer__last(const cl_perf_timer *t);
/**
- * return cummulative running time across all start..stop
+ * return cumulative running time across all start..stop
* intervals in seconds.
*/
double cl_perf_timer__sum(const cl_perf_timer *t);
diff --git a/tests/commit/write.c b/tests/commit/write.c
index 2c2278546..5a9c9d5a5 100644
--- a/tests/commit/write.c
+++ b/tests/commit/write.c
@@ -155,7 +155,7 @@ void test_commit_write__root(void)
cl_git_pass(git_signature_new(&committer, committer_name, committer_email, 123456789, 60));
cl_git_pass(git_signature_new(&author, committer_name, committer_email, 987654321, 90));
- /* First we need to update HEAD so it points to our non-existant branch */
+ /* First we need to update HEAD so it points to our non-existent branch */
cl_git_pass(git_reference_lookup(&head, g_repo, "HEAD"));
cl_assert(git_reference_type(head) == GIT_REFERENCE_SYMBOLIC);
head_old = git__strdup(git_reference_symbolic_target(head));
diff --git a/tests/config/multivar.c b/tests/config/multivar.c
index 4f08a4817..244e37559 100644
--- a/tests/config/multivar.c
+++ b/tests/config/multivar.c
@@ -128,7 +128,7 @@ void test_config_multivar__add(void)
int n;
cl_git_pass(git_config_open_ondisk(&cfg, "config/config11"));
- cl_git_pass(git_config_set_multivar(cfg, _name, "nonexistant", "git://git.otherplace.org/libgit2"));
+ cl_git_pass(git_config_set_multivar(cfg, _name, "non-existent", "git://git.otherplace.org/libgit2"));
n = 0;
cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n));
diff --git a/tests/core/rmdir.c b/tests/core/rmdir.c
index 8e5bd5878..f6c66b3a4 100644
--- a/tests/core/rmdir.c
+++ b/tests/core/rmdir.c
@@ -33,7 +33,7 @@ void test_core_rmdir__cleanup(void)
cl_git_pass(git_futils_rmdir_r(empty_tmp_dir, NULL, GIT_RMDIR_REMOVE_FILES));
}
-/* make sure empty dir can be deleted recusively */
+/* make sure empty dir can be deleted recursively */
void test_core_rmdir__delete_recursive(void)
{
git_str path = GIT_STR_INIT;
@@ -47,7 +47,7 @@ void test_core_rmdir__delete_recursive(void)
git_str_dispose(&path);
}
-/* make sure non-empty dir cannot be deleted recusively */
+/* make sure non-empty dir cannot be deleted recursively */
void test_core_rmdir__fail_to_delete_non_empty_dir(void)
{
git_str file = GIT_STR_INIT;
diff --git a/tests/core/structinit.c b/tests/core/structinit.c
index d24da874d..160e2f612 100644
--- a/tests/core/structinit.c
+++ b/tests/core/structinit.c
@@ -67,7 +67,7 @@ void test_core_structinit__compare(void)
* which is not guaranteed to be initialized to anything sane at all.
*
* Assume most compilers, in a debug build, will clear that memory for
- * us or set it to sentinal markers. Etc.
+ * us or set it to sentinel markers. Etc.
*/
#if !defined(DEBUG) && !defined(_DEBUG)
clar__skip();
diff --git a/tests/diff/rename.c b/tests/diff/rename.c
index 41dc95eb4..30e9ea432 100644
--- a/tests/diff/rename.c
+++ b/tests/diff/rename.c
@@ -375,7 +375,7 @@ void test_diff_rename__not_exact_match(void)
/* git diff -M -C --find-copies-harder --break-rewrites \
* 1c068dee5790ef1580cfc4cd670915b48d790084 \
* 19dd32dfb1520a64e5bbaae8dce6ef423dfa2f13
- * with ignore_space whitespace comparision
+ * with ignore_space whitespace comparison
*/
cl_git_pass(git_diff_tree_to_tree(
&diff, g_repo, old_tree, new_tree, &diffopts));
diff --git a/tests/index/tests.c b/tests/index/tests.c
index b6715574e..205d12e5b 100644
--- a/tests/index/tests.c
+++ b/tests/index/tests.c
@@ -200,14 +200,14 @@ void test_index_tests__write(void)
void test_index_tests__sort0(void)
{
- /* sort the entires in an index */
+ /* sort the entries in an index */
/*
* TODO: This no longer applies:
* index sorting in Git uses some specific changes to the way
* directories are sorted.
*
- * We need to specificially check for this by creating a new
+ * We need to specifically check for this by creating a new
* index, adding entries in random order and then
* checking for consistency
*/
@@ -215,7 +215,7 @@ void test_index_tests__sort0(void)
void test_index_tests__sort1(void)
{
- /* sort the entires in an empty index */
+ /* sort the entries in an empty index */
git_index *index;
cl_git_pass(git_index_open(&index, "fake-index"));
@@ -242,7 +242,7 @@ void test_index_tests__add(void)
cl_set_cleanup(&cleanup_myrepo, NULL);
- /* Intialize a new repository */
+ /* Initialize a new repository */
cl_git_pass(git_repository_init(&repo, "./myrepo", 0));
/* Ensure we're the only guy in the room */
@@ -293,7 +293,7 @@ void test_index_tests__add_frombuffer(void)
cl_set_cleanup(&cleanup_myrepo, NULL);
- /* Intialize a new repository */
+ /* Initialize a new repository */
cl_git_pass(git_repository_init(&repo, "./myrepo", 0));
/* Ensure we're the only guy in the room */
@@ -435,7 +435,7 @@ void test_index_tests__add_frombuffer_reset_entry(void)
cl_set_cleanup(&cleanup_myrepo, NULL);
- /* Intialize a new repository */
+ /* Initialize a new repository */
cl_git_pass(git_repository_init(&repo, "./myrepo", 0));
cl_git_pass(git_repository_index(&index, repo));
cl_git_pass(git_futils_mkpath2file("myrepo/test.txt", 0777));
diff --git a/tests/network/url/parse.c b/tests/network/url/parse.c
index edfd6abec..8149ba52c 100644
--- a/tests/network/url/parse.c
+++ b/tests/network/url/parse.c
@@ -552,6 +552,6 @@ void test_network_url_parse__ipv6_invalid_addresses(void)
cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata,
"https://user:pass@fe80::dcad:beff:fe00:0001:9191/resource"));
- /* Invalid chracter inside address */
+ /* Invalid character inside address */
cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://[fe8o::dcad:beff:fe00:0001]/resource"));
}
diff --git a/tests/object/raw/convert.c b/tests/object/raw/convert.c
index 88b1380a4..40a01ae09 100644
--- a/tests/object/raw/convert.c
+++ b/tests/object/raw/convert.c
@@ -38,7 +38,7 @@ void test_object_raw_convert__succeed_on_oid_to_string_conversion(void)
cl_assert(*(str+i) == '\0');
/* must not touch bytes past end of string */
cl_assert(*(str+(i+1)) == 'Z');
- /* i == n-1 charaters of string */
+ /* i == n-1 characters of string */
cl_git_pass(strncmp(exp, out, i));
}
diff --git a/tests/object/tree/read.c b/tests/object/tree/read.c
index de2e64c68..95a2e70fb 100644
--- a/tests/object/tree/read.c
+++ b/tests/object/tree/read.c
@@ -21,7 +21,7 @@ void test_object_tree_read__cleanup(void)
void test_object_tree_read__loaded(void)
{
- /* acces randomly the entries on a loaded tree */
+ /* access randomly the entries on a loaded tree */
git_oid id;
git_tree *tree;
diff --git a/tests/path/core.c b/tests/path/core.c
index 9421941c0..db5359af8 100644
--- a/tests/path/core.c
+++ b/tests/path/core.c
@@ -290,7 +290,7 @@ void test_path_core__validate_workdir(void)
#ifdef GIT_WIN32
/*
- * In the absense of a repo configuration, 259 character paths
+ * In the absence of a repo configuration, 259 character paths
* succeed. >= 260 character paths fail.
*/
cl_must_pass(git_path_validate_length(NULL, "C:\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\aaaaaaaaa\\ok.txt"));
diff --git a/tests/path/win32.c b/tests/path/win32.c
index 64d8d8e08..1aaf6867a 100644
--- a/tests/path/win32.c
+++ b/tests/path/win32.c
@@ -269,7 +269,7 @@ void test_path_win32__8dot3_name(void)
cl_assert_equal_s("WINDOWS", (shortname = git_win32_path_8dot3_name("C:\\WINDOWS")));
git__free(shortname);
- /* Create some predictible short names */
+ /* Create some predictable short names */
cl_must_pass(p_mkdir(".foo", 0777));
cl_assert_equal_s("FOO~1", (shortname = git_win32_path_8dot3_name(".foo")));
git__free(shortname);
diff --git a/tests/refs/branches/delete.c b/tests/refs/branches/delete.c
index 077882b22..27995f9e2 100644
--- a/tests/refs/branches/delete.c
+++ b/tests/refs/branches/delete.c
@@ -136,7 +136,7 @@ void test_refs_branches_delete__removes_reflog(void)
cl_assert_equal_i(false, git_reference_has_log(repo, "refs/heads/track-local"));
- /* Reading a nonexistant reflog creates it, but it should be empty */
+ /* Reading a non-existent reflog creates it, but it should be empty */
cl_git_pass(git_reflog_read(&log, repo, "refs/heads/track-local"));
cl_assert_equal_i(0, git_reflog_entrycount(log));
git_reflog_free(log);
diff --git a/tests/submodule/update.c b/tests/submodule/update.c
index 79353e575..4aa959852 100644
--- a/tests/submodule/update.c
+++ b/tests/submodule/update.c
@@ -11,7 +11,7 @@ void test_submodule_update__cleanup(void)
cl_git_sandbox_cleanup();
}
-void test_submodule_update__unitialized_submodule_no_init(void)
+void test_submodule_update__uninitialized_submodule_no_init(void)
{
git_submodule *sm;
git_submodule_update_options update_options = GIT_SUBMODULE_UPDATE_OPTIONS_INIT;
@@ -21,7 +21,7 @@ void test_submodule_update__unitialized_submodule_no_init(void)
/* get the submodule */
cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo"));
- /* updating an unitialized repository throws */
+ /* updating an uninitialized repository throws */
cl_git_fail_with(
GIT_ERROR,
git_submodule_update(sm, 0, &update_options));