Unverified Commit 43fb0c29 by Edward Thomson Committed by GitHub

Merge pull request #5444 from josharian/issue5428

repository: improve commondir docs
parents 9a102446 a5886e9e
...@@ -481,10 +481,11 @@ GIT_EXTERN(const char *) git_repository_path(const git_repository *repo); ...@@ -481,10 +481,11 @@ GIT_EXTERN(const char *) git_repository_path(const git_repository *repo);
GIT_EXTERN(const char *) git_repository_workdir(const git_repository *repo); GIT_EXTERN(const char *) git_repository_workdir(const git_repository *repo);
/** /**
* Get the path of the shared common directory for this repository * Get the path of the shared common directory for this repository.
* *
* If the repository is bare is not a worktree, the git directory * If the repository is bare, it is the root directory for the repository.
* path is returned. * If the repository is a worktree, it is the parent repo's gitdir.
* Otherwise, it is the gitdir.
* *
* @param repo A repository object * @param repo A repository object
* @return the path to the common dir * @return the path to the common dir
......
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