git_repository_set_index

Set the index file for this repository

This index will be used for all index-related operations involving this repository.

The repository will keep a reference to the index file; the user must still free the index after setting it to the repository, or it will leak.

package extern (C) nothrow @nogc
int
git_repository_set_index

Parameters

repo libgit2_d.types.git_repository*

A repository object

index libgit2_d.types.git_index*

An index object

Return Value

Type: int

0 on success, or an error code

Meta