libgit2

git_packbuilder_write

Version:

Write the new pack and corresponding index file to path.

Signature

int git_packbuilder_write(git_packbuilder *pb, const char *path, unsigned int mode, git_transfer_progress_callback progress_cb, void *progress_cb_payload);

Parameters

In
pb

The packbuilder

const char *
In
path

to the directory where the packfile and index should be stored

unsigned int
In
mode

permissions to use creating a packfile or 0 for defaults

In
progress_cb

function to call with progress information from the indexer (optional)

void *
In
progress_cb_payload

payload for the progress callback (optional)

Returns

int

0 or an error code

Versions