git_index_find

Find the first position of any entries which point to given path in the Git index.

extern (C) nothrow @nogc
int
git_index_find
(
size_t* at_pos
,,
const(char)* path
)

Parameters

at_pos size_t*

the address to which the position of the index entry is written (optional)

index libgit2_d.types.git_index*

an existing index object

path const(char)*

path to search

Return Value

Type: int

a zero-based position in the index if found; git_error_code.GIT_ENOTFOUND otherwise

Meta