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 public
int
git_index_find_prefix
(
size_t* at_pos
,,
const(char)* prefix
)

Parameters

at_pos size_t*

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

index libgit2.types.git_index*

an existing index object

prefix const(char)*

the prefix to search for

Return Value

Type: int

0 or an error code

Meta