| 215 | } |
| 216 | |
| 217 | static 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 | |
| 230 | static void add_entry(struct unpack_trees_options *o, |
| 231 | const struct cache_entry *ce, |
no test coverage detected