Skip to content

Commit cfc3b37

Browse files
authored
Merge pull request libgit2#6500 from timrogers/timrogers/empty-docs
Correct the definition of "empty" in the docs for `git_repository_is_empty`
2 parents 6f2eedb + 86b532d commit cfc3b37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/git2/repository.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ GIT_EXTERN(int) git_repository_head_unborn(git_repository *repo);
465465
* Check if a repository is empty
466466
*
467467
* An empty repository has just been initialized and contains no references
468-
* apart from HEAD, which must be pointing to the unborn master branch.
468+
* apart from HEAD, which must be pointing to the unborn master branch,
469+
* or the branch specified for the repository in the `init.defaultBranch`
470+
* configuration variable.
469471
*
470472
* @param repo Repo to test
471473
* @return 1 if the repository is empty, 0 if it isn't, error code

0 commit comments

Comments
 (0)