Skip to content

Commit 9f723c9

Browse files
committed
docs: fixups
1 parent b883d37 commit 9f723c9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

include/git2/sys/repository.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GIT_EXTERN(int) git_repository_new(git_repository **out);
3939
* There's no need to call this function directly unless you're
4040
* trying to aggressively cleanup the repo before its
4141
* deallocation. `git_repository_free` already performs this operation
42-
* before deallocation the repo.
42+
* before deallocating the repo.
4343
*/
4444
GIT_EXTERN(void) git_repository__cleanup(git_repository *repo);
4545

src/odb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ int git_odb__add_default_backends(
548548
#else
549549
if (p_stat(objects_dir, &st) < 0) {
550550
if (as_alternates)
551+
/* this should warn */
551552
return 0;
552553

553554
git_error_set(GIT_ERROR_ODB, "failed to load object database in '%s'", objects_dir);

src/odb.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj);
7171
* Format the object header such as it would appear in the on-disk object
7272
*/
7373
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);
74+
7475
/*
7576
* Hash an open file descriptor.
7677
* This is a performance call when the contents of a fd need to be hashed,
@@ -95,7 +96,7 @@ int git_odb__hashfd_filtered(
9596
* symlink, then the raw contents of the symlink will be hashed. Otherwise,
9697
* this will fallback to `git_odb__hashfd`.
9798
*
98-
* The hash type for this call is always `GIT_OBJIECT_BLOB` because
99+
* The hash type for this call is always `GIT_OBJECT_BLOB` because
99100
* symlinks may only point to blobs.
100101
*/
101102
int git_odb__hashlink(git_oid *out, const char *path);

0 commit comments

Comments
 (0)