| 2202 | } |
| 2203 | |
| 2204 | static int same(const struct cache_entry *a, const struct cache_entry *b) |
| 2205 | { |
| 2206 | if (!!a != !!b) |
| 2207 | return 0; |
| 2208 | if (!a && !b) |
| 2209 | return 1; |
| 2210 | if ((a->ce_flags | b->ce_flags) & CE_CONFLICTED) |
| 2211 | return 0; |
| 2212 | return a->ce_mode == b->ce_mode && |
| 2213 | oideq(&a->oid, &b->oid); |
| 2214 | } |
| 2215 | |
| 2216 | |
| 2217 | /* |
no test coverage detected