git_index_find_prefix

Find the first position of any entries matching a prefix. To find the first position of a path inside a given folder, suffix the prefix with a '/'.

extern (C) nothrow @nogc
int
git_index_find_prefix

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

prefix const(char)*

the prefix to search for

Return Value

Type: int

0 with valid value in at_pos; an error code otherwise

Meta