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

Function update_tree_entry_internal

tree-walk.c:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static int update_tree_entry_internal(struct tree_desc *desc, struct strbuf *err)
113{
114 const void *buf = desc->buffer;
115 const unsigned char *end = (const unsigned char *)desc->entry.path + desc->entry.pathlen + 1 + desc->algo->rawsz;
116 unsigned long size = desc->size;
117 unsigned long len = end - (const unsigned char *)buf;
118
119 if (size < len)
120 die(_("too-short tree file"));
121 buf = end;
122 size -= len;
123 desc->buffer = buf;
124 desc->size = size;
125 if (size)
126 return decode_tree_entry(desc, buf, size, err);
127 return 0;
128}
129
130void update_tree_entry(struct tree_desc *desc)
131{

Callers 2

update_tree_entryFunction · 0.85
update_tree_entry_gentlyFunction · 0.85

Calls 2

decode_tree_entryFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected