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

Function same

unpack-trees.c:2204–2214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2202}
2203
2204static 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/*

Callers 4

merged_entryFunction · 0.85
threeway_mergeFunction · 0.85
twoway_mergeFunction · 0.85
oneway_mergeFunction · 0.85

Calls 1

oideqFunction · 0.85

Tested by

no test coverage detected