libgit2

git_indexer_new

Version:

Create a new indexer instance

Signature

int git_indexer_new(git_indexer **out, const char *path, unsigned int mode, git_odb *odb, git_indexer_options *opts);

Parameters

In
out

where to store the indexer instance

const char *
In
path

to the directory where the packfile should be stored

unsigned int
In
mode

permissions to use creating packfile or 0 for defaults

In
odb

object database from which to read base objects when fixing thin packs. Pass NULL if no thin pack is expected (an error will be returned if there are bases missing)

In
opts

Optional structure containing additional options. See git_indexer_options above.

Returns

int

Versions