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_transfer_progress_cb progress_cb, void *progress_cb_payload);

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
progress_cb

function to call with progress information

void *
In
progress_cb_payload

payload for the progress callback

Returns

int

Versions