Correct typos in documentation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
diff --git a/include/git2/checkout.h b/include/git2/checkout.h
index 12fffeb..b25298f 100644
--- a/include/git2/checkout.h
+++ b/include/git2/checkout.h
@@ -83,7 +83,7 @@ GIT_BEGIN_DECL
* in target, baseline, or index, and not ignored) from the working dir.
*
* - GIT_CHECKOUT_REMOVE_IGNORED means remove ignored files (that are also
- * unrtacked) from the working directory as well.
+ * untracked) from the working directory as well.
*
* - GIT_CHECKOUT_UPDATE_ONLY means to only update the content of files that
* already exist. Files will not be created nor deleted. This just skips
@@ -97,13 +97,13 @@ GIT_BEGIN_DECL
*
* - Unmerged index entries are conflicts. GIT_CHECKOUT_SKIP_UNMERGED skips
* files with unmerged index entries instead. GIT_CHECKOUT_USE_OURS and
- * GIT_CHECKOUT_USE_THEIRS to proceeed with the checkout using either the
+ * GIT_CHECKOUT_USE_THEIRS to proceed with the checkout using either the
* stage 2 ("ours") or stage 3 ("theirs") version of files in the index.
*/
typedef enum {
GIT_CHECKOUT_NONE = 0, /** default is a dry run, no actual updates */
- /** Allow safe updates that cannot overwrite uncommited data */
+ /** Allow safe updates that cannot overwrite uncommitted data */
GIT_CHECKOUT_SAFE = (1u << 0),
/** Allow safe updates plus creation of missing files */
diff --git a/include/git2/config.h b/include/git2/config.h
index b186e70..77fd847 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -297,7 +297,7 @@ GIT_EXTERN(int) git_config_get_int32(int32_t *out, const git_config *cfg, const
*
* All config files will be looked into, in the order of their
* defined level. A higher level means a higher priority. The
- * first occurence of the variable will be returned here.
+ * first occurrence of the variable will be returned here.
*
* @param out pointer to the variable where the value should be stored
* @param cfg where to look for the variable
@@ -314,7 +314,7 @@ GIT_EXTERN(int) git_config_get_int64(int64_t *out, const git_config *cfg, const
*
* All config files will be looked into, in the order of their
* defined level. A higher level means a higher priority. The
- * first occurence of the variable will be returned here.
+ * first occurrence of the variable will be returned here.
*
* @param out pointer to the variable where the value should be stored
* @param cfg where to look for the variable
@@ -331,7 +331,7 @@ GIT_EXTERN(int) git_config_get_bool(int *out, const git_config *cfg, const char
*
* All config files will be looked into, in the order of their
* defined level. A higher level means a higher priority. The
- * first occurence of the variable will be returned here.
+ * first occurrence of the variable will be returned here.
*
* @param out pointer to the variable's value
* @param cfg where to look for the variable
diff --git a/include/git2/diff.h b/include/git2/diff.h
index b26dd42..760de6f 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -241,8 +241,8 @@ typedef struct {
* callback functions and you can use the contents to understand exactly
* what has changed.
*
- * The `old_file` repesents the "from" side of the diff and the `new_file`
- * repesents to "to" side of the diff. What those means depend on the
+ * The `old_file` represents the "from" side of the diff and the `new_file`
+ * represents to "to" side of the diff. What those means depend on the
* function that was used to generate the diff and will be documented below.
* You can also use the `GIT_DIFF_REVERSE` flag to flip it around.
*
diff --git a/include/git2/ignore.h b/include/git2/ignore.h
index 592c96e..48993da 100644
--- a/include/git2/ignore.h
+++ b/include/git2/ignore.h
@@ -57,7 +57,7 @@ GIT_EXTERN(int) git_ignore_clear_internal_rules(
*
* This function checks the ignore rules to see if they would apply to the
* given file. This indicates if the file would be ignored regardless of
- * whether the file is already in the index or commited to the repository.
+ * whether the file is already in the index or committed to the repository.
*
* One way to think of this is if you were to do "git add ." on the
* directory containing the file, would it be added or not?
diff --git a/include/git2/refspec.h b/include/git2/refspec.h
index 1100e90..21fea20 100644
--- a/include/git2/refspec.h
+++ b/include/git2/refspec.h
@@ -56,7 +56,7 @@ GIT_EXTERN(int) git_refspec_src_matches(const git_refspec *refspec, const char *
* Transform a reference to its target following the refspec's rules
*
* @param out where to store the target name
- * @param outlen the size ouf the `out` buffer
+ * @param outlen the size of the `out` buffer
* @param spec the refspec
* @param name the name of the reference to transform
* @return 0, GIT_EBUFS or another error
diff --git a/include/git2/repository.h b/include/git2/repository.h
index 1371d54..abd7de8 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -609,7 +609,7 @@ GIT_EXTERN(int) git_repository_set_head_detached(
* 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
- * unaletered, and -1 is returned.
+ * unaltered, and -1 is returned.
*
* Otherwise, the HEAD will be detached and point to the peeled Commit.
*
diff --git a/include/git2/status.h b/include/git2/status.h
index a898d1f..349d7aa 100644
--- a/include/git2/status.h
+++ b/include/git2/status.h
@@ -210,7 +210,7 @@ GIT_EXTERN(int) git_status_file(
*
* This function checks the ignore rules to see if they would apply to the
* given file. This indicates if the file would be ignored regardless of
- * whether the file is already in the index or commited to the repository.
+ * whether the file is already in the index or committed to the repository.
*
* One way to think of this is if you were to do "git add ." on the
* directory containing the file, would it be added or not?