libgit2

git_index_open_inrepo

Version:

Open the Index inside the git repository pointed by 'repo'.

Signature

int git_index_open_inrepo(git_index **index, git_repository *repo);

Parameters

In
index

the pointer for the new index

In
repo

the git repo which owns the index

Returns

int

0 on success; error code otherwise

Versions