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

Function ce_compare_gitlink

read-cache.c:270–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static int ce_compare_gitlink(const struct cache_entry *ce)
271{
272 struct object_id oid;
273
274 /*
275 * We don't actually require that the .git directory
276 * under GITLINK directory be a valid git directory. It
277 * might even be missing (in case nobody populated that
278 * sub-project).
279 *
280 * If so, we consider it always to match.
281 */
282 if (repo_resolve_gitlink_ref(the_repository, ce->name,
283 "HEAD", &oid) < 0)
284 return 0;
285 return !oideq(&oid, &ce->oid);
286}
287
288static int ce_modified_check_fs(struct index_state *istate,
289 const struct cache_entry *ce,

Callers 2

ce_modified_check_fsFunction · 0.85
ce_match_stat_basicFunction · 0.85

Calls 2

repo_resolve_gitlink_refFunction · 0.85
oideqFunction · 0.85

Tested by

no test coverage detected