| 44 | } |
| 45 | |
| 46 | void hashflush(struct hashfile *f) |
| 47 | { |
| 48 | unsigned offset = f->offset; |
| 49 | |
| 50 | if (offset) { |
| 51 | if (!f->skip_hash) |
| 52 | git_hash_update(&f->ctx, f->buffer, offset); |
| 53 | flush(f, f->buffer, offset); |
| 54 | f->offset = 0; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void free_hashfile(struct hashfile *f) |
| 59 | { |
no test coverage detected