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), an error is returned.
0 on success, otherwise a negative value