MCPcopy Index your code
hub / github.com/git/git / load_gc_recent_objects

Function load_gc_recent_objects

reachable.c:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static void load_gc_recent_objects(struct recent_data *data)
165{
166 const struct string_list *programs;
167 int ret = 0;
168 size_t i;
169
170 data->extra_recent_oids_loaded = 1;
171
172 if (repo_config_get_string_multi(the_repository, "gc.recentobjectshook", &programs))
173 return;
174
175 for (i = 0; i < programs->nr; i++) {
176 ret = run_one_gc_recent_objects_hook(&data->extra_recent_oids,
177 programs->items[i].string);
178 if (ret)
179 die(_("unable to enumerate additional recent objects"));
180 }
181}
182
183static int obj_is_recent(const struct object_id *oid, timestamp_t mtime,
184 struct recent_data *data)

Callers 1

obj_is_recentFunction · 0.85

Calls 3

dieFunction · 0.70

Tested by

no test coverage detected