| 55 | } |
| 56 | |
| 57 | const char *odb_loose_path(struct odb_source_loose *loose, |
| 58 | struct strbuf *buf, |
| 59 | const struct object_id *oid) |
| 60 | { |
| 61 | strbuf_reset(buf); |
| 62 | strbuf_addstr(buf, loose->base.path); |
| 63 | strbuf_addch(buf, '/'); |
| 64 | fill_loose_path(buf, oid, loose->base.odb->repo->hash_algo); |
| 65 | return buf->buf; |
| 66 | } |
| 67 | |
| 68 | /* Returns 1 if we have successfully freshened the file, 0 otherwise. */ |
| 69 | static int freshen_file(const char *fn) |
no test coverage detected