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

Function do_add_entry

unpack-trees.c:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static int do_add_entry(struct unpack_trees_options *o, struct cache_entry *ce,
218 unsigned int set, unsigned int clear)
219{
220 clear |= CE_HASHED;
221
222 if (set & CE_REMOVE)
223 set |= CE_WT_REMOVE;
224
225 ce->ce_flags = (ce->ce_flags & ~clear) | set;
226 return add_index_entry(&o->internal.result, ce,
227 ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
228}
229
230static void add_entry(struct unpack_trees_options *o,
231 const struct cache_entry *ce,

Callers 3

add_entryFunction · 0.85
unpack_single_entryFunction · 0.85
merged_entryFunction · 0.85

Calls 1

add_index_entryFunction · 0.85

Tested by

no test coverage detected