Fix typos

parent 82f526a9
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# GSSAPI_ROOT_DIR - Set this variable to the root installation of GSSAPI # GSSAPI_ROOT_DIR - Set this variable to the root installation of GSSAPI
# #
# Read-Only variables: # 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_FLAVOR_HEIMDAL - set to TRUE if Heimdal Kerberos has been found
# GSSAPI_FOUND - system has GSSAPI # GSSAPI_FOUND - system has GSSAPI
# GSSAPI_INCLUDE_DIR - the GSSAPI include directory # GSSAPI_INCLUDE_DIR - the GSSAPI include directory
......
...@@ -80,4 +80,4 @@ and run it against our description file with the tip of `main` checked out. ...@@ -80,4 +80,4 @@ and run it against our description file with the tip of `main` checked out.
cm doc api.docurium 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.
...@@ -49,7 +49,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[]) ...@@ -49,7 +49,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
if (o.F) blameopts.flags |= GIT_BLAME_FIRST_PARENT; 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. * nail down the end points.
*/ */
if (o.commitspec) { if (o.commitspec) {
...@@ -70,7 +70,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[]) ...@@ -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 * 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)) if (git_oid_is_zero(&blameopts.newest_commit))
strcpy(spec, "HEAD"); strcpy(spec, "HEAD");
......
...@@ -344,7 +344,7 @@ GIT_EXTERN(int) git_attr_cache_flush( ...@@ -344,7 +344,7 @@ GIT_EXTERN(int) git_attr_cache_flush(
* Add a macro definition. * Add a macro definition.
* *
* Macros will automatically be loaded from the top level `.gitattributes` * 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 * function allows you to add others. For example, to add the default
* macro, you would call: * macro, you would call:
* *
......
...@@ -74,8 +74,8 @@ typedef int GIT_CALLBACK(git_remote_create_cb)( ...@@ -74,8 +74,8 @@ typedef int GIT_CALLBACK(git_remote_create_cb)(
void *payload); void *payload);
/** /**
* The signature of a function matchin git_repository_init, with an * The signature of a function matching git_repository_init, with an
* aditional void * as callback payload. * additional void * as callback payload.
* *
* Callers of git_clone my provide a function matching this signature * Callers of git_clone my provide a function matching this signature
* to override the repository creation and customization process * to override the repository creation and customization process
......
...@@ -152,7 +152,7 @@ GIT_EXTERN(int) git_describe_commit( ...@@ -152,7 +152,7 @@ GIT_EXTERN(int) git_describe_commit(
* Describe a commit * Describe a commit
* *
* Perform the describe operation on the current commit and the * 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. * description is considered to be dirty if there are.
* *
* @param out pointer to store the result. You must free this once * @param out pointer to store the result. You must free this once
......
...@@ -758,7 +758,7 @@ typedef struct { ...@@ -758,7 +758,7 @@ typedef struct {
uint16_t copy_threshold; 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. * This is equivalent to the last part of the -B option. Defaults to 60.
*/ */
uint16_t break_rewrite_threshold; uint16_t break_rewrite_threshold;
...@@ -1317,7 +1317,7 @@ typedef enum { ...@@ -1317,7 +1317,7 @@ typedef enum {
/** /**
* Accumulate diff statistics for all patches. * 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. * @param diff A git_diff generated by one of the above functions.
* @return 0 on success; non-zero on error * @return 0 on success; non-zero on error
*/ */
......
...@@ -578,7 +578,7 @@ GIT_EXTERN(int) git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t ...@@ -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. * 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. * transferred to libgit2, and the caller should not free it.
* *
* The commit-graph can also be unset by explicitly passing NULL as the cgraph * The commit-graph can also be unset by explicitly passing NULL as the cgraph
......
...@@ -31,7 +31,7 @@ GIT_BEGIN_DECL ...@@ -31,7 +31,7 @@ GIT_BEGIN_DECL
* git_reflog_free(). * git_reflog_free().
* *
* @param out pointer to reflog * @param out pointer to reflog
* @param repo the repostiory * @param repo the repository
* @param name reference to look up * @param name reference to look up
* @return 0 or an error code * @return 0 or an error code
*/ */
......
...@@ -57,7 +57,7 @@ GIT_EXTERN(int) git_reference_name_to_id( ...@@ -57,7 +57,7 @@ GIT_EXTERN(int) git_reference_name_to_id(
/** /**
* Lookup a reference by DWIMing its short name * 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. * which reference the user is referring to.
* *
* @param out pointer in which to store the reference * @param out pointer in which to store the reference
......
...@@ -893,7 +893,7 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks ...@@ -893,7 +893,7 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks
/** /**
* Perform a push * 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 remote the remote to push to
* @param refspecs the refspecs to use for pushing. If NULL or an empty * @param refspecs the refspecs to use for pushing. If NULL or an empty
......
...@@ -808,19 +808,19 @@ GIT_EXTERN(int) git_repository_set_head( ...@@ -808,19 +808,19 @@ GIT_EXTERN(int) git_repository_set_head(
* If the provided committish cannot be found in the repository, the HEAD * If the provided committish cannot be found in the repository, the HEAD
* is unaltered and GIT_ENOTFOUND is returned. * 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. * is unaltered and -1 is returned.
* *
* Otherwise, the HEAD will eventually be detached and will directly point to * Otherwise, the HEAD will eventually be detached and will directly point to
* the peeled Commit. * the peeled Commit.
* *
* @param repo Repository pointer * @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 * @return 0 on success, or an error code
*/ */
GIT_EXTERN(int) git_repository_set_head_detached( GIT_EXTERN(int) git_repository_set_head_detached(
git_repository *repo, git_repository *repo,
const git_oid *commitish); const git_oid *committish);
/** /**
* Make the repository HEAD directly point to the Commit. * Make the repository HEAD directly point to the Commit.
...@@ -836,7 +836,7 @@ GIT_EXTERN(int) git_repository_set_head_detached( ...@@ -836,7 +836,7 @@ GIT_EXTERN(int) git_repository_set_head_detached(
*/ */
GIT_EXTERN(int) git_repository_set_head_detached_from_annotated( GIT_EXTERN(int) git_repository_set_head_detached_from_annotated(
git_repository *repo, git_repository *repo,
const git_annotated_commit *commitish); const git_annotated_commit *committish);
/** /**
* Detach the HEAD. * Detach the HEAD.
...@@ -846,7 +846,7 @@ GIT_EXTERN(int) git_repository_set_head_detached_from_annotated( ...@@ -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 * 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. * 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. * unaltered, and -1 is returned.
* *
* Otherwise, the HEAD will be detached and point to the peeled Commit. * Otherwise, the HEAD will be detached and point to the peeled Commit.
......
...@@ -48,7 +48,7 @@ typedef enum { ...@@ -48,7 +48,7 @@ typedef enum {
* *
* @param target Committish to which the Head should be moved to. This object * @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 * 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. * to a git_commit which oid will be used as the target of the branch.
* *
* @param reset_type Kind of reset operation to perform. * @param reset_type Kind of reset operation to perform.
......
...@@ -181,7 +181,7 @@ GIT_EXTERN(int) git_submodule_update_options_init( ...@@ -181,7 +181,7 @@ GIT_EXTERN(int) git_submodule_update_options_init(
* @param submodule Submodule object * @param submodule Submodule object
* @param init If the submodule is not initialized, setting this flag to true * @param init If the submodule is not initialized, setting this flag to true
* will initialize the submodule before updating. Otherwise, this will * 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. * but setting this to true forces them to be updated.
* @param options configuration options for the update. If NULL, the * @param options configuration options for the update. If NULL, the
* function works as though GIT_SUBMODULE_UPDATE_OPTIONS_INIT was passed. * function works as though GIT_SUBMODULE_UPDATE_OPTIONS_INIT was passed.
......
...@@ -255,7 +255,7 @@ GIT_EXTERN(int) git_treebuilder_new( ...@@ -255,7 +255,7 @@ GIT_EXTERN(int) git_treebuilder_new(
git_treebuilder **out, git_repository *repo, const git_tree *source); 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 * @param bld Builder to clear
* @return 0 on success; error code otherwise * @return 0 on success; error code otherwise
......
...@@ -236,7 +236,7 @@ typedef struct git_refspec git_refspec; ...@@ -236,7 +236,7 @@ typedef struct git_refspec git_refspec;
/** /**
* Git's idea of a remote repository. A remote can be anonymous (in * 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; typedef struct git_remote git_remote;
......
...@@ -646,7 +646,7 @@ static int collect_attr_files( ...@@ -646,7 +646,7 @@ static int collect_attr_files(
if (error < 0) if (error < 0)
goto cleanup; goto cleanup;
/* in precendence order highest to lowest: /* in precedence order highest to lowest:
* - $GIT_DIR/info/attributes * - $GIT_DIR/info/attributes
* - path components with .gitattributes * - path components with .gitattributes
* - config core.attributesfile * - config core.attributesfile
......
...@@ -707,7 +707,7 @@ int git_branch_set_upstream(git_reference *branch, const char *branch_name) ...@@ -707,7 +707,7 @@ int git_branch_set_upstream(git_reference *branch, const char *branch_name)
if (error < 0) if (error < 0)
goto on_error; 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) if (git_str_printf(&key, "branch.%s.remote", shortname) < 0)
goto on_error; goto on_error;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
# define PRIdZ "zd" # define PRIdZ "zd"
#endif #endif
/* Micosoft Visual C/C++ */ /* Microsoft Visual C/C++ */
#if defined(_MSC_VER) #if defined(_MSC_VER)
/* disable "deprecated function" warnings */ /* disable "deprecated function" warnings */
# pragma warning ( disable : 4996 ) # pragma warning ( disable : 4996 )
......
...@@ -963,7 +963,7 @@ static int checkout_conflicts_load(checkout_data *data, git_iterator *workdir, g ...@@ -963,7 +963,7 @@ static int checkout_conflicts_load(checkout_data *data, git_iterator *workdir, g
{ {
git_index *index; 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) if ((index = git_iterator_index(data->target)) == NULL)
return 0; return 0;
......
...@@ -96,7 +96,7 @@ int git_config_lookup_map_enum(git_configmap_t *type_out, ...@@ -96,7 +96,7 @@ int git_config_lookup_map_enum(git_configmap_t *type_out,
/** /**
* Unlock the backend with the highest priority * 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 * file. Optionally, any changes performed since the lock will be
* applied to the configuration. * applied to the configuration.
* *
......
...@@ -136,7 +136,7 @@ Exit: ...@@ -136,7 +136,7 @@ Exit:
/* /*
* Determine if the path is a Windows prefix and, if so, returns * 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) static int win32_prefix_length(const char *path, int len)
{ {
......
...@@ -231,10 +231,10 @@ typedef enum { ...@@ -231,10 +231,10 @@ typedef enum {
* Copy a directory tree. * Copy a directory tree.
* *
* This copies directories and files from one root to another. You can * 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 * 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 * 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 actually be copied from the source files and the `dirmode` arg
* will be ignored. * will be ignored.
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
/* Not under GCC-alike or glibc */ /* Not under GCC-alike or glibc */
#elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN) #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 * the defined(_BIG_ENDIAN) && defined(_LITTLE_ENDIAN) part prevents
* this condition from matching with Solaris/sparc. * this condition from matching with Solaris/sparc.
* (Solaris defines only one endian macro) * (Solaris defines only one endian macro)
......
...@@ -3499,7 +3499,7 @@ static int index_apply_to_wd_diff(git_index *index, int action, const git_strarr ...@@ -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 * diff because we want to tell the callback which one
* matched, which we do not know if we ask diff to filter for us. * matched, which we do not know if we ask diff to filter for us.
*/ */
......
...@@ -1123,7 +1123,7 @@ static int update_header_and_rehash(git_indexer *idx, git_indexer_progress *stat ...@@ -1123,7 +1123,7 @@ static int update_header_and_rehash(git_indexer *idx, git_indexer_progress *stat
git_hash_init(&idx->trailer); 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); idx->hdr.hdr_entries = htonl(stats->total_objects + stats->local_objects);
if (write_at(idx, &idx->hdr, 0, sizeof(struct git_pack_header)) < 0) if (write_at(idx, &idx->hdr, 0, sizeof(struct git_pack_header)) < 0)
return -1; return -1;
......
...@@ -564,7 +564,7 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key) ...@@ -564,7 +564,7 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key)
code; \ code; \
} } } }
/* More conenient interfaces */ /* More convenient interfaces */
/*! @function /*! @function
@abstract Instantiate a hash set containing integer keys @abstract Instantiate a hash set containing integer keys
......
...@@ -3019,10 +3019,10 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde ...@@ -3019,10 +3019,10 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
*conflicts = 0; *conflicts = 0;
/* We need to have merged at least 1 file for the possibility to exist to /* 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 * 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 * 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. * changes have already been applied.
*/ */
if (merged_paths->length == 0) if (merged_paths->length == 0)
......
...@@ -473,7 +473,7 @@ int git_mwindow_file_register(git_mwindow_file *mwf) ...@@ -473,7 +473,7 @@ int git_mwindow_file_register(git_mwindow_file *mwf)
git_mwindow_find_lru_file_locked(&lru_file) == 0) { git_mwindow_find_lru_file_locked(&lru_file) == 0) {
if ((error = git_vector_insert(&closed_files, 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. * data races that can end up corrupting the heap.
*/ */
break; break;
......
...@@ -115,7 +115,7 @@ struct pack_writepack { ...@@ -115,7 +115,7 @@ struct pack_writepack {
* | OID can be found. If we can find the offset to that SHA1 inside of the * | 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 * | index, that means the object is contained inside of the packfile and
* | we can stop searching. Before returning, we verify that the * | 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 * |-# pack_entry_find_offset
* | Mmap the actual index file to disk if it hasn't been opened * | Mmap the actual index file to disk if it hasn't been opened
......
...@@ -353,7 +353,7 @@ static int parse_header_start(git_patch_parsed *patch, git_patch_parse_ctx *ctx) ...@@ -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 * We cannot expect to be able to always parse paths correctly at this
* point. Due to the possibility of unquoted names, whitespaces in * point. Due to the possibility of unquoted names, whitespaces in
* filenames and custom prefixes we have to allow that, though, and just * 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. * for us.
*/ */
if (!git_parse_ctx_contains(&ctx->parse_ctx, "\n", 1) && if (!git_parse_ctx_contains(&ctx->parse_ctx, "\n", 1) &&
......
...@@ -45,7 +45,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches, ...@@ -45,7 +45,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches,
int error; int error;
size_t i; 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) if (nmatches <= ARRAY_SIZE(static_ovec) / 3)
ovec = static_ovec; ovec = static_ovec;
else else
......
...@@ -3027,19 +3027,19 @@ cleanup: ...@@ -3027,19 +3027,19 @@ cleanup:
int git_repository_set_head_detached( int git_repository_set_head_detached(
git_repository *repo, 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( int git_repository_set_head_detached_from_annotated(
git_repository *repo, git_repository *repo,
const git_annotated_commit *commitish) const git_annotated_commit *committish)
{ {
GIT_ASSERT_ARG(repo); 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) int git_repository_detach_head(git_repository *repo)
......
...@@ -427,7 +427,7 @@ static int add_parents_to_list(git_revwalk *walk, git_commit_list_node *commit, ...@@ -427,7 +427,7 @@ static int add_parents_to_list(git_revwalk *walk, git_commit_list_node *commit,
return 0; 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 #define SLOP 5
static int still_interesting(git_commit_list *list, int64_t time, int slop) static int still_interesting(git_commit_list *list, int64_t time, int slop)
......
...@@ -84,7 +84,7 @@ static unsigned int workdir_delta2status( ...@@ -84,7 +84,7 @@ static unsigned int workdir_delta2status(
if (!git_oid_equal(&idx2wd->old_file.id, &idx2wd->new_file.id)) { 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 /* 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) && if (git_oid_is_zero(&idx2wd->old_file.id) &&
diff->old_src == GIT_ITERATOR_WORKDIR && diff->old_src == GIT_ITERATOR_WORKDIR &&
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* The implementation was written so as to conform with Netscapes SSL. * The implementation was written so as to conform with Netscapes SSL.
* *
* This library is free for commercial and non-commercial use as long as * 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, * 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 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms * included with this distribution is covered by the same copyright terms
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* must display the following acknowledgement: * must display the following acknowledgement:
* "This product includes cryptographic software written by * "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)" * 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 :-). * being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement: * the apps directory (application code) you must include an acknowledgement:
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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 * derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence * copied and put under another distribution licence
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
......
...@@ -137,7 +137,7 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec ...@@ -137,7 +137,7 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec
{ {
const char *ptr; 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) if (pkt == NULL || pkt->capabilities == NULL)
return GIT_ENOTFOUND; return GIT_ENOTFOUND;
......
...@@ -868,7 +868,7 @@ static int list_auth_methods(int *out, LIBSSH2_SESSION *session, const char *use ...@@ -868,7 +868,7 @@ static int list_auth_methods(int *out, LIBSSH2_SESSION *session, const char *use
continue; continue;
} }
/* Skipt it if we don't know it */ /* Skip it if we don't know it */
ptr = strchr(ptr, ','); ptr = strchr(ptr, ',');
} }
......
...@@ -605,7 +605,7 @@ static int write_tree( ...@@ -605,7 +605,7 @@ static int write_tree(
/* /*
* This loop is unfortunate, but necessary. The index doesn't have * 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. * need to keep track of the current position.
*/ */
for (i = start; i < entries; ++i) { for (i = start; i < entries; ++i) {
......
...@@ -41,7 +41,7 @@ GIT_INLINE(int) path__cwd(wchar_t *path, int size) ...@@ -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. /* 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)) if (wcsncmp(path, PATH__NT_NAMESPACE, PATH__NT_NAMESPACE_LEN))
return len; return len;
......
...@@ -441,7 +441,7 @@ int p_symlink(const char *target, const char *path) ...@@ -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, * not want to use `git_win32_path_from_utf8` for converting the target,
* as that function will automatically pre-pend the current working * as that function will automatically pre-pend the current working
* directory in case the path is not absolute. As Git will instead use * 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 || if (git_win32_path_from_utf8(path_w, path) < 0 ||
git_win32_path_relative_from_utf8(target_w, target) < 0) git_win32_path_relative_from_utf8(target_w, target) < 0)
......
...@@ -199,7 +199,7 @@ int git_win32_leakcheck_stack( ...@@ -199,7 +199,7 @@ int git_win32_leakcheck_stack(
return 0; return 0;
} }
/* Strack tracing */ /* Stack tracing */
#define STACKTRACE_UID_LEN (15) #define STACKTRACE_UID_LEN (15)
......
...@@ -2,7 +2,7 @@ set(Python_ADDITIONAL_VERSIONS 3 2.7) ...@@ -2,7 +2,7 @@ set(Python_ADDITIONAL_VERSIONS 3 2.7)
find_package(PythonInterp) find_package(PythonInterp)
if(NOT PYTHONINTERP_FOUND) 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") "Make sure python is available, or pass -DBUILD_TESTS=OFF to skip building the tests")
ENDIF() ENDIF()
......
...@@ -66,7 +66,7 @@ void test_checkout_tree__can_checkout_and_remove_directory(void) ...@@ -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/")); 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 * current working tree
*/ */
cl_git_pass(git_revparse_single(&g_object, g_repo, "subtrees")); 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) ...@@ -81,7 +81,7 @@ void test_checkout_tree__can_checkout_and_remove_directory(void)
git_object_free(g_object); git_object_free(g_object);
g_object = NULL; 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 * current working tree
*/ */
cl_git_pass(git_revparse_single(&g_object, g_repo, "master")); cl_git_pass(git_revparse_single(&g_object, g_repo, "master"));
...@@ -537,7 +537,7 @@ static void assert_conflict( ...@@ -537,7 +537,7 @@ static void assert_conflict(
g_opts.checkout_strategy = GIT_CHECKOUT_FORCE; g_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
cl_git_pass(git_checkout_tree(g_repo, g_object, &g_opts)); 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 * match the content of the tree
*/ */
cl_git_pass(git_object_peel(&hack_tree, g_object, GIT_OBJECT_TREE)); cl_git_pass(git_object_peel(&hack_tree, g_object, GIT_OBJECT_TREE));
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
struct cl_perf_timer struct cl_perf_timer
{ {
/* cummulative running time across all start..stop intervals */ /* cumulative running time across all start..stop intervals */
double sum; double sum;
/* value of last start..stop interval */ /* value of last start..stop interval */
...@@ -27,7 +27,7 @@ void cl_perf_timer__stop(cl_perf_timer *t); ...@@ -27,7 +27,7 @@ void cl_perf_timer__stop(cl_perf_timer *t);
double cl_perf_timer__last(const 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. * intervals in seconds.
*/ */
double cl_perf_timer__sum(const cl_perf_timer *t); double cl_perf_timer__sum(const cl_perf_timer *t);
......
...@@ -155,7 +155,7 @@ void test_commit_write__root(void) ...@@ -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(&committer, committer_name, committer_email, 123456789, 60));
cl_git_pass(git_signature_new(&author, committer_name, committer_email, 987654321, 90)); 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_git_pass(git_reference_lookup(&head, g_repo, "HEAD"));
cl_assert(git_reference_type(head) == GIT_REFERENCE_SYMBOLIC); cl_assert(git_reference_type(head) == GIT_REFERENCE_SYMBOLIC);
head_old = git__strdup(git_reference_symbolic_target(head)); head_old = git__strdup(git_reference_symbolic_target(head));
......
...@@ -128,7 +128,7 @@ void test_config_multivar__add(void) ...@@ -128,7 +128,7 @@ void test_config_multivar__add(void)
int n; int n;
cl_git_pass(git_config_open_ondisk(&cfg, "config/config11")); 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; n = 0;
cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n)); cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n));
......
...@@ -33,7 +33,7 @@ void test_core_rmdir__cleanup(void) ...@@ -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)); 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) void test_core_rmdir__delete_recursive(void)
{ {
git_str path = GIT_STR_INIT; git_str path = GIT_STR_INIT;
...@@ -47,7 +47,7 @@ void test_core_rmdir__delete_recursive(void) ...@@ -47,7 +47,7 @@ void test_core_rmdir__delete_recursive(void)
git_str_dispose(&path); 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) void test_core_rmdir__fail_to_delete_non_empty_dir(void)
{ {
git_str file = GIT_STR_INIT; git_str file = GIT_STR_INIT;
......
...@@ -67,7 +67,7 @@ void test_core_structinit__compare(void) ...@@ -67,7 +67,7 @@ void test_core_structinit__compare(void)
* which is not guaranteed to be initialized to anything sane at all. * which is not guaranteed to be initialized to anything sane at all.
* *
* Assume most compilers, in a debug build, will clear that memory for * 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) #if !defined(DEBUG) && !defined(_DEBUG)
clar__skip(); clar__skip();
......
...@@ -375,7 +375,7 @@ void test_diff_rename__not_exact_match(void) ...@@ -375,7 +375,7 @@ void test_diff_rename__not_exact_match(void)
/* git diff -M -C --find-copies-harder --break-rewrites \ /* git diff -M -C --find-copies-harder --break-rewrites \
* 1c068dee5790ef1580cfc4cd670915b48d790084 \ * 1c068dee5790ef1580cfc4cd670915b48d790084 \
* 19dd32dfb1520a64e5bbaae8dce6ef423dfa2f13 * 19dd32dfb1520a64e5bbaae8dce6ef423dfa2f13
* with ignore_space whitespace comparision * with ignore_space whitespace comparison
*/ */
cl_git_pass(git_diff_tree_to_tree( cl_git_pass(git_diff_tree_to_tree(
&diff, g_repo, old_tree, new_tree, &diffopts)); &diff, g_repo, old_tree, new_tree, &diffopts));
......
...@@ -200,14 +200,14 @@ void test_index_tests__write(void) ...@@ -200,14 +200,14 @@ void test_index_tests__write(void)
void test_index_tests__sort0(void) void test_index_tests__sort0(void)
{ {
/* sort the entires in an index */ /* sort the entries in an index */
/* /*
* TODO: This no longer applies: * TODO: This no longer applies:
* index sorting in Git uses some specific changes to the way * index sorting in Git uses some specific changes to the way
* directories are sorted. * 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 * index, adding entries in random order and then
* checking for consistency * checking for consistency
*/ */
...@@ -215,7 +215,7 @@ void test_index_tests__sort0(void) ...@@ -215,7 +215,7 @@ void test_index_tests__sort0(void)
void test_index_tests__sort1(void) void test_index_tests__sort1(void)
{ {
/* sort the entires in an empty index */ /* sort the entries in an empty index */
git_index *index; git_index *index;
cl_git_pass(git_index_open(&index, "fake-index")); cl_git_pass(git_index_open(&index, "fake-index"));
...@@ -242,7 +242,7 @@ void test_index_tests__add(void) ...@@ -242,7 +242,7 @@ void test_index_tests__add(void)
cl_set_cleanup(&cleanup_myrepo, NULL); 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_init(&repo, "./myrepo", 0));
/* Ensure we're the only guy in the room */ /* Ensure we're the only guy in the room */
...@@ -293,7 +293,7 @@ void test_index_tests__add_frombuffer(void) ...@@ -293,7 +293,7 @@ void test_index_tests__add_frombuffer(void)
cl_set_cleanup(&cleanup_myrepo, NULL); 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_init(&repo, "./myrepo", 0));
/* Ensure we're the only guy in the room */ /* Ensure we're the only guy in the room */
...@@ -435,7 +435,7 @@ void test_index_tests__add_frombuffer_reset_entry(void) ...@@ -435,7 +435,7 @@ void test_index_tests__add_frombuffer_reset_entry(void)
cl_set_cleanup(&cleanup_myrepo, NULL); 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_init(&repo, "./myrepo", 0));
cl_git_pass(git_repository_index(&index, repo)); cl_git_pass(git_repository_index(&index, repo));
cl_git_pass(git_futils_mkpath2file("myrepo/test.txt", 0777)); cl_git_pass(git_futils_mkpath2file("myrepo/test.txt", 0777));
......
...@@ -552,6 +552,6 @@ void test_network_url_parse__ipv6_invalid_addresses(void) ...@@ -552,6 +552,6 @@ void test_network_url_parse__ipv6_invalid_addresses(void)
cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata,
"https://user:pass@fe80::dcad:beff:fe00:0001:9191/resource")); "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")); cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://[fe8o::dcad:beff:fe00:0001]/resource"));
} }
...@@ -38,7 +38,7 @@ void test_object_raw_convert__succeed_on_oid_to_string_conversion(void) ...@@ -38,7 +38,7 @@ void test_object_raw_convert__succeed_on_oid_to_string_conversion(void)
cl_assert(*(str+i) == '\0'); cl_assert(*(str+i) == '\0');
/* must not touch bytes past end of string */ /* must not touch bytes past end of string */
cl_assert(*(str+(i+1)) == 'Z'); 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)); cl_git_pass(strncmp(exp, out, i));
} }
......
...@@ -21,7 +21,7 @@ void test_object_tree_read__cleanup(void) ...@@ -21,7 +21,7 @@ void test_object_tree_read__cleanup(void)
void test_object_tree_read__loaded(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_oid id;
git_tree *tree; git_tree *tree;
......
...@@ -290,7 +290,7 @@ void test_path_core__validate_workdir(void) ...@@ -290,7 +290,7 @@ void test_path_core__validate_workdir(void)
#ifdef GIT_WIN32 #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. * 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")); 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"));
......
...@@ -269,7 +269,7 @@ void test_path_win32__8dot3_name(void) ...@@ -269,7 +269,7 @@ void test_path_win32__8dot3_name(void)
cl_assert_equal_s("WINDOWS", (shortname = git_win32_path_8dot3_name("C:\\WINDOWS"))); cl_assert_equal_s("WINDOWS", (shortname = git_win32_path_8dot3_name("C:\\WINDOWS")));
git__free(shortname); git__free(shortname);
/* Create some predictible short names */ /* Create some predictable short names */
cl_must_pass(p_mkdir(".foo", 0777)); cl_must_pass(p_mkdir(".foo", 0777));
cl_assert_equal_s("FOO~1", (shortname = git_win32_path_8dot3_name(".foo"))); cl_assert_equal_s("FOO~1", (shortname = git_win32_path_8dot3_name(".foo")));
git__free(shortname); git__free(shortname);
......
...@@ -136,7 +136,7 @@ void test_refs_branches_delete__removes_reflog(void) ...@@ -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")); 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_git_pass(git_reflog_read(&log, repo, "refs/heads/track-local"));
cl_assert_equal_i(0, git_reflog_entrycount(log)); cl_assert_equal_i(0, git_reflog_entrycount(log));
git_reflog_free(log); git_reflog_free(log);
......
...@@ -11,7 +11,7 @@ void test_submodule_update__cleanup(void) ...@@ -11,7 +11,7 @@ void test_submodule_update__cleanup(void)
cl_git_sandbox_cleanup(); 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 *sm;
git_submodule_update_options update_options = GIT_SUBMODULE_UPDATE_OPTIONS_INIT; git_submodule_update_options update_options = GIT_SUBMODULE_UPDATE_OPTIONS_INIT;
...@@ -21,7 +21,7 @@ void test_submodule_update__unitialized_submodule_no_init(void) ...@@ -21,7 +21,7 @@ void test_submodule_update__unitialized_submodule_no_init(void)
/* get the submodule */ /* get the submodule */
cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo")); cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo"));
/* updating an unitialized repository throws */ /* updating an uninitialized repository throws */
cl_git_fail_with( cl_git_fail_with(
GIT_ERROR, GIT_ERROR,
git_submodule_update(sm, 0, &update_options)); git_submodule_update(sm, 0, &update_options));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment