summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/git2/sys/repository.h2
-rw-r--r--src/odb.c1
-rw-r--r--src/odb.h3
3 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/sys/repository.h b/include/git2/sys/repository.h
index 0c9142143..f1d1c3d06 100644
--- a/include/git2/sys/repository.h
+++ b/include/git2/sys/repository.h
@@ -39,7 +39,7 @@ GIT_EXTERN(int) git_repository_new(git_repository **out);
* There's no need to call this function directly unless you're
* trying to aggressively cleanup the repo before its
* deallocation. `git_repository_free` already performs this operation
- * before deallocation the repo.
+ * before deallocating the repo.
*/
GIT_EXTERN(void) git_repository__cleanup(git_repository *repo);
diff --git a/src/odb.c b/src/odb.c
index 0ede4a36b..e04cf02ea 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -548,6 +548,7 @@ int git_odb__add_default_backends(
#else
if (p_stat(objects_dir, &st) < 0) {
if (as_alternates)
+ /* this should warn */
return 0;
git_error_set(GIT_ERROR_ODB, "failed to load object database in '%s'", objects_dir);
diff --git a/src/odb.h b/src/odb.h
index 8c73515f0..79ed6b402 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -71,6 +71,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj);
* Format the object header such as it would appear in the on-disk object
*/
int git_odb__format_object_header(size_t *out_len, char *hdr, size_t hdr_size, git_off_t obj_len, git_object_t obj_type);
+
/*
* Hash an open file descriptor.
* This is a performance call when the contents of a fd need to be hashed,
@@ -95,7 +96,7 @@ int git_odb__hashfd_filtered(
* symlink, then the raw contents of the symlink will be hashed. Otherwise,
* this will fallback to `git_odb__hashfd`.
*
- * The hash type for this call is always `GIT_OBJIECT_BLOB` because
+ * The hash type for this call is always `GIT_OBJECT_BLOB` because
* symlinks may only point to blobs.
*/
int git_odb__hashlink(git_oid *out, const char *path);