| 186 | } |
| 187 | |
| 188 | struct hashfile *hashfd(const struct git_hash_algo *algop, |
| 189 | int fd, const char *name) |
| 190 | { |
| 191 | /* |
| 192 | * Since we are not going to use a progress meter to |
| 193 | * measure the rate of data passing through this hashfile, |
| 194 | * use a larger buffer size to reduce fsync() calls. |
| 195 | */ |
| 196 | struct hashfd_options opts = { 0 }; |
| 197 | return hashfd_ext(algop, fd, name, &opts); |
| 198 | } |
| 199 | |
| 200 | void hashfile_checkpoint_init(struct hashfile *f, |
| 201 | struct hashfile_checkpoint *checkpoint) |