| 3630 | } |
| 3631 | |
| 3632 | static void write_eoie_extension(struct strbuf *sb, struct git_hash_ctx *eoie_context, size_t offset) |
| 3633 | { |
| 3634 | uint32_t buffer; |
| 3635 | unsigned char hash[GIT_MAX_RAWSZ]; |
| 3636 | |
| 3637 | /* offset */ |
| 3638 | put_be32(&buffer, offset); |
| 3639 | strbuf_add(sb, &buffer, sizeof(uint32_t)); |
| 3640 | |
| 3641 | /* hash */ |
| 3642 | git_hash_final(hash, eoie_context); |
| 3643 | strbuf_add(sb, hash, the_hash_algo->rawsz); |
| 3644 | } |
| 3645 | |
| 3646 | #define IEOT_VERSION (1) |
| 3647 |
no test coverage detected