diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2017-06-12 21:23:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-12 21:23:44 +0100 |
| commit | 99e40a67c7ef84defc7d2a32b0e0f09466fa48f9 (patch) | |
| tree | 43ec4e9d873e838579eaaa337f8d3900e300ab97 /include | |
| parent | d9914fb7c63ebf4dd171ca1589577a44526888d2 (diff) | |
| parent | fe9a5dd3cab5e5137603503bb461b6a52793d56f (diff) | |
| download | libgit2-99e40a67c7ef84defc7d2a32b0e0f09466fa48f9.tar.gz | |
Merge pull request #4263 from libgit2/ethomson/config_for_inmemory_repo
Allow creation of a configuration object in an in-memory repository
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/repository.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index a396a5409..8aac0b3f7 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -433,12 +433,12 @@ typedef enum { * item. It will thereby honor things like the repository's * common directory, gitdir, etc. In case a file path cannot * exist for a given item (e.g. the working directory of a bare - * repository), an error is returned. + * repository), GIT_ENOTFOUND is returned. * * @param out Buffer to store the path at * @param repo Repository to get path for * @param item The repository item for which to retrieve the path - * @return 0 on success, otherwise a negative value + * @return 0, GIT_ENOTFOUND if the path cannot exist or an error code */ GIT_EXTERN(int) git_repository_item_path(git_buf *out, git_repository *repo, git_repository_item_t item); |
