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

Function diff_add_if_missing

diff.c:7440–7449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7438}
7439
7440void diff_add_if_missing(struct repository *r,
7441 struct oid_array *to_fetch,
7442 const struct diff_filespec *filespec)
7443{
7444 if (filespec && filespec->oid_valid &&
7445 !S_ISGITLINK(filespec->mode) &&
7446 odb_read_object_info_extended(r->objects, &filespec->oid, NULL,
7447 OBJECT_INFO_FOR_PREFETCH))
7448 oid_array_append(to_fetch, &filespec->oid);
7449}
7450
7451void diff_queued_diff_prefetch(void *repository)
7452{

Callers 3

inexact_prefetchFunction · 0.85
basename_prefetchFunction · 0.85

Calls 2

oid_array_appendFunction · 0.85

Tested by

no test coverage detected