docs: fixups

parent b883d370
...@@ -39,7 +39,7 @@ GIT_EXTERN(int) git_repository_new(git_repository **out); ...@@ -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 * There's no need to call this function directly unless you're
* trying to aggressively cleanup the repo before its * trying to aggressively cleanup the repo before its
* deallocation. `git_repository_free` already performs this operation * 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); GIT_EXTERN(void) git_repository__cleanup(git_repository *repo);
......
...@@ -548,6 +548,7 @@ int git_odb__add_default_backends( ...@@ -548,6 +548,7 @@ int git_odb__add_default_backends(
#else #else
if (p_stat(objects_dir, &st) < 0) { if (p_stat(objects_dir, &st) < 0) {
if (as_alternates) if (as_alternates)
/* this should warn */
return 0; return 0;
git_error_set(GIT_ERROR_ODB, "failed to load object database in '%s'", objects_dir); git_error_set(GIT_ERROR_ODB, "failed to load object database in '%s'", objects_dir);
......
...@@ -71,6 +71,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj); ...@@ -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 * 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); 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. * Hash an open file descriptor.
* This is a performance call when the contents of a fd need to be hashed, * This is a performance call when the contents of a fd need to be hashed,
...@@ -95,7 +96,7 @@ int git_odb__hashfd_filtered( ...@@ -95,7 +96,7 @@ int git_odb__hashfd_filtered(
* symlink, then the raw contents of the symlink will be hashed. Otherwise, * symlink, then the raw contents of the symlink will be hashed. Otherwise,
* this will fallback to `git_odb__hashfd`. * 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. * symlinks may only point to blobs.
*/ */
int git_odb__hashlink(git_oid *out, const char *path); int git_odb__hashlink(git_oid *out, const char *path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment