git_repository_item_path

Get the location of a specific repository file or directory

This function will retrieve the path of a specific repository 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), git_error_code.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, git_error_code.GIT_ENOTFOUND if the path cannot exist or an error code

extern (C) nothrow @nogc
int
git_repository_item_path

Meta