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.

extern (C) nothrow @nogc
int
git_repository_item_path

Parameters

out_ libgit2_d.buffer.git_buf*

Buffer to store the path at

repo const(libgit2_d.types.git_repository)*

Repository to get path for

item .git_repository_item_t

The repository item for which to retrieve the path

Return Value

Type: int

0, git_error_code.GIT_ENOTFOUND if the path cannot exist or an error code

Meta