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

Function check_shallow_file_for_update

shallow.c:338–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static void check_shallow_file_for_update(struct repository *r)
339{
340 if (r->parsed_objects->is_shallow == -1)
341 BUG("shallow must be initialized by now");
342
343 if (!stat_validity_check(r->parsed_objects->shallow_stat,
344 git_path_shallow(r)))
345 die("shallow file has changed since we read it");
346}
347
348#define SEEN_ONLY 1
349#define VERBOSE 2

Callers 2

setup_alternate_shallowFunction · 0.85
prune_shallowFunction · 0.85

Calls 2

stat_validity_checkFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected