MCPcopy Index your code
hub / github.com/git/git / write_tree_entry

Function write_tree_entry

notes.c:652–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652static void write_tree_entry(struct strbuf *buf, unsigned int mode,
653 const char *path, unsigned int path_len, const
654 unsigned char *hash)
655{
656 strbuf_addf(buf, "%o %.*s%c", mode, path_len, path, '\0');
657 strbuf_add(buf, hash, the_hash_algo->rawsz);
658}
659
660static void tree_write_stack_init_subtree(struct tree_write_stack *tws,
661 const char *path)

Callers 2

write_each_note_helperFunction · 0.85

Calls 2

strbuf_addfFunction · 0.85
strbuf_addFunction · 0.85

Tested by

no test coverage detected