libgit2

git_index_extension_lookup

Version:

Look up an index extension by its signature

Signature

int git_index_extension_lookup(git_buf *out, git_index *index, const char *signature);

Parameters

In
out

the extension's data (not including the header)

In
index

an existing index object

const char *
In
signature

the 4 character signature of the desired extension

Returns

int

0 (no error), GIT_ENOTFOUND (extension not present), or an error code

Versions