MCPcopy Create free account
hub / github.com/git/git / show_cruft_object

Function show_cruft_object

builtin/pack-objects.c:4188–4201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4186}
4187
4188static void show_cruft_object(struct object *obj, const char *name, void *data UNUSED)
4189{
4190 /*
4191 * if we did not record it earlier, it's at least as old as our
4192 * expiration value. Rather than find it exactly, just use that
4193 * value. This may bump it forward from its real mtime, but it
4194 * will still be "too old" next time we run with the same
4195 * expiration.
4196 *
4197 * if obj does appear in the packing list, this call is a noop (or may
4198 * set the namehash).
4199 */
4200 add_cruft_object_entry(&obj->oid, obj->type, NULL, 0, name, cruft_expiration);
4201}
4202
4203static void show_cruft_commit(struct commit *commit, void *data)
4204{

Callers 1

show_cruft_commitFunction · 0.85

Calls 1

add_cruft_object_entryFunction · 0.85

Tested by

no test coverage detected