libgit2

git_index_write

Version:

Write an existing index object from memory back to disk using an atomic file lock.

Signature

int git_index_write(git_index *index);

Parameters

In
index

an existing index object

Returns

int

0 on success, otherwise an error code

Versions