We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f2eedb + 86b532d commit cfc3b37Copy full SHA for cfc3b37
include/git2/repository.h
@@ -465,7 +465,9 @@ GIT_EXTERN(int) git_repository_head_unborn(git_repository *repo);
465
* Check if a repository is empty
466
*
467
* An empty repository has just been initialized and contains no references
468
- * apart from HEAD, which must be pointing to the unborn master branch.
+ * 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.
471
472
* @param repo Repo to test
473
* @return 1 if the repository is empty, 0 if it isn't, error code
0 commit comments