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

Function packfile_store_freshen_object

packfile.c:2172–2186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170}
2171
2172int packfile_store_freshen_object(struct packfile_store *store,
2173 const struct object_id *oid)
2174{
2175 struct pack_entry e;
2176 if (!find_pack_entry(store, oid, &e))
2177 return 0;
2178 if (e.p->is_cruft)
2179 return 0;
2180 if (e.p->freshened)
2181 return 1;
2182 if (utime(e.p->pack_name, NULL))
2183 return 0;
2184 e.p->freshened = 1;
2185 return 1;
2186}
2187
2188int packfile_store_read_object_info(struct packfile_store *store,
2189 const struct object_id *oid,

Callers 1

Calls 1

find_pack_entryFunction · 0.85

Tested by

no test coverage detected