git_refdb_backend.compress

Suggests that the given refdb compress or optimize its references.

This mechanism is implementation specific. For on-disk reference databases, this may pack all loose references.

A refdb implementation may provide this function; if it is not provided, nothing will be done.

struct git_refdb_backend
int function(.git_refdb_backend* backend) compress;

Return Value

0 on success a negative error code otherwise

Meta