git_index_get_bypath

Get a pointer to one of the entries in the index

The entry is not modifiable and should not be freed. Because the git_index_entry struct is a publicly defined struct, you should be able to make your own permanent copy of the data if necessary.

extern (C) nothrow @nogc public
git_index_get_bypath

Parameters

index libgit2.types.git_index*

an existing index object

path const(char)*

path to search

stage int

stage to search

Return Value

Type: const(.git_index_entry)*

a pointer to the entry; null if it was not found

Meta