libgit2

git_refdb_compress

Version:

Suggests that the given refdb compress or optimize its references. This mechanism is implementation specific. For on-disk reference databases, for example, this may pack all loose references.

Signature

int git_refdb_compress(git_refdb *refdb);

Parameters

In
refdb

The reference database to optimize.

Returns

int

0 or an error code.

Versions