MCPcopy Create free account
hub / github.com/git/git / write_eoie_extension

Function write_eoie_extension

read-cache.c:3632–3644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3630}
3631
3632static 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

Callers 1

do_write_indexFunction · 0.85

Calls 3

put_be32Function · 0.85
strbuf_addFunction · 0.85
git_hash_finalFunction · 0.85

Tested by

no test coverage detected