Commit 9f723c97f506da0e544efe1910a96afd311f3407

Etienne Samson 2019-06-26T14:49:37

docs: fixups

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);