docs: fixups
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
diff --git a/include/git2/sys/repository.h b/include/git2/sys/repository.h
index 0c91421..f1d1c3d 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 0ede4a3..e04cf02 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 8c73515..79ed6b4 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);