summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWill Stamper <epmatsw@gmail.com>2014-12-04 21:06:59 -0600
committerWill Stamper <epmatsw@gmail.com>2014-12-04 21:06:59 -0600
commitb874629b2d5823b7f52055a9784cc2e34cd48efb (patch)
tree6ce8a50295f3de1fc8ca00344b39dc180eb506e8 /src
parent8bfbe6988fe749a4970613db371a214f18fc5c9b (diff)
downloadlibgit2-b874629b2d5823b7f52055a9784cc2e34cd48efb.tar.gz
Spelling fixes
Diffstat (limited to 'src')
-rw-r--r--src/commit_list.c2
-rw-r--r--src/common.h2
-rw-r--r--src/config_file.c2
-rw-r--r--src/odb_loose.c2
-rw-r--r--src/path.h2
-rw-r--r--src/pool.c2
-rw-r--r--src/repository.h2
-rw-r--r--src/tag.c2
-rw-r--r--src/xdiff/xdiffi.c2
-rw-r--r--src/xdiff/xhistogram.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/src/commit_list.c b/src/commit_list.c
index 9db3f5633..3054c18dd 100644
--- a/src/commit_list.c
+++ b/src/commit_list.c
@@ -151,7 +151,7 @@ static int commit_quick_parse(
while (buffer > committer_start && git__isspace(*buffer))
buffer--;
- /* Seek for the begining of the pack of digits */
+ /* Seek for the beginning of the pack of digits */
while (buffer > committer_start && git__isdigit(*buffer))
buffer--;
diff --git a/src/common.h b/src/common.h
index 807e5fa39..a8f60fe48 100644
--- a/src/common.h
+++ b/src/common.h
@@ -68,7 +68,7 @@
#define GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { return -1; }
/**
- * Check a return value and propogate result if non-zero.
+ * Check a return value and propagate result if non-zero.
*/
#define GITERR_CHECK_ERROR(code) \
do { int _err = (code); if (_err) return _err; } while (0)
diff --git a/src/config_file.c b/src/config_file.c
index d72e12c56..94f292ccc 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -1532,7 +1532,7 @@ static int config_write(diskfile_backend *cfg, const char *key, const regex_t *p
goto rewrite_fail;
/* Sanity check: if we are here, and value is NULL, that means that somebody
- * touched the config file after our intial read. We should probably assert()
+ * touched the config file after our initial read. We should probably assert()
* this, but instead we'll handle it gracefully with an error. */
if (value == NULL) {
giterr_set(GITERR_CONFIG,
diff --git a/src/odb_loose.c b/src/odb_loose.c
index ef6de41a9..ea9bdc4a0 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -56,7 +56,7 @@ typedef struct {
/***********************************************************
*
- * MISCELANEOUS HELPER FUNCTIONS
+ * MISCELLANEOUS HELPER FUNCTIONS
*
***********************************************************/
diff --git a/src/path.h b/src/path.h
index 11bb6d173..23d7c2ddb 100644
--- a/src/path.h
+++ b/src/path.h
@@ -307,7 +307,7 @@ extern int git_path_cmp(
* reached (inclusive of a final call at the root_path).
*
* Returning anything other than 0 from the callback function
- * will stop the iteration and propogate the error to the caller.
+ * will stop the iteration and propagate the error to the caller.
*
* @param pathbuf Buffer the function reads the directory from and
* and updates with each successive name.
diff --git a/src/pool.c b/src/pool.c
index 180643ca7..a5dfa0f49 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -159,7 +159,7 @@ void *git_pool_malloc(git_pool *pool, uint32_t items)
return ptr;
}
- /* just add a block if there is no open one to accomodate this */
+ /* just add a block if there is no open one to accommodate this */
if (size >= pool->page_size || !scan || scan->avail < size)
return pool_alloc_page(pool, size);
diff --git a/src/repository.h b/src/repository.h
index 45b95a0f0..40e54c1ca 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -150,7 +150,7 @@ int git_repository_index__weakptr(git_index **out, git_repository *repo);
* CVAR cache
*
* Efficient access to the most used config variables of a repository.
- * The cache is cleared everytime the config backend is replaced.
+ * The cache is cleared every time the config backend is replaced.
*/
int git_repository__cvar(int *out, git_repository *repo, git_cvar_cached cvar);
void git_repository__cvar_cache_clear(git_repository *repo);
diff --git a/src/tag.c b/src/tag.c
index ca2ed531b..dc0827b8f 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -258,7 +258,7 @@ static int git_tag_create__internal(
goto cleanup;
/** Ensure the tag name doesn't conflict with an already existing
- * reference unless overwriting has explictly been requested **/
+ * reference unless overwriting has explicitly been requested **/
if (error == 0 && !allow_ref_overwrite) {
git_buf_free(&ref_name);
giterr_set(GITERR_TAG, "Tag already exists");
diff --git a/src/xdiff/xdiffi.c b/src/xdiff/xdiffi.c
index 75a392275..84aa0fcfe 100644
--- a/src/xdiff/xdiffi.c
+++ b/src/xdiff/xdiffi.c
@@ -490,7 +490,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
/*
* Try to move back the possibly merged group of changes, to match
- * the recorded postion in the other file.
+ * the recorded position in the other file.
*/
while (ixref < ix) {
rchg[--ixs] = 1;
diff --git a/src/xdiff/xhistogram.c b/src/xdiff/xhistogram.c
index 5d101754d..c84812893 100644
--- a/src/xdiff/xhistogram.c
+++ b/src/xdiff/xhistogram.c
@@ -55,7 +55,7 @@ struct histindex {
struct record {
unsigned int ptr, cnt;
struct record *next;
- } **records, /* an ocurrence */
+ } **records, /* an occurrence */
**line_map; /* map of line to record chain */
chastore_t rcha;
unsigned int *next_ptrs;