git_odb_backend.freshen

"Freshens" an already existing object, updating its last-used time. This occurs when git_odb_write was called, but the object already existed (and will not be re-written). The underlying implementation may want to update last-used timestamps.

If callers implement this, they should return 0 if the object exists and was freshened, and non-zero otherwise.

struct git_odb_backend
int function(.git_odb_backend*, const(libgit2_d.oid.git_oid)*) freshen;

Meta