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

Function obj_is_recent

reachable.c:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183static int obj_is_recent(const struct object_id *oid, timestamp_t mtime,
184 struct recent_data *data)
185{
186 if (mtime > data->timestamp)
187 return 1;
188
189 if (!data->extra_recent_oids_loaded)
190 load_gc_recent_objects(data);
191 return oidset_contains(&data->extra_recent_oids, oid);
192}
193
194static int want_recent_object(struct recent_data *data,
195 const struct object_id *oid)

Callers 1

add_recent_objectFunction · 0.85

Calls 2

load_gc_recent_objectsFunction · 0.85
oidset_containsFunction · 0.85

Tested by

no test coverage detected