| 2170 | } |
| 2171 | |
| 2172 | int 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 | |
| 2188 | int packfile_store_read_object_info(struct packfile_store *store, |
| 2189 | const struct object_id *oid, |
no test coverage detected