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

Function stat_validity_update

statinfo.c:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void stat_validity_update(struct stat_validity *sv, int fd)
124{
125 struct stat st;
126
127 if (fstat(fd, &st) < 0 || !S_ISREG(st.st_mode))
128 stat_validity_clear(sv);
129 else {
130 if (!sv->sd)
131 CALLOC_ARRAY(sv->sd, 1);
132 fill_stat_data(sv->sd, &st);
133 }
134}

Callers 2

is_repository_shallowFunction · 0.85
load_contentsFunction · 0.85

Calls 2

stat_validity_clearFunction · 0.85
fill_stat_dataFunction · 0.85

Tested by

no test coverage detected