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

Function stat_validity_check

statinfo.c:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int stat_validity_check(struct stat_validity *sv, const char *path)
113{
114 struct stat st;
115
116 if (stat(path, &st) < 0)
117 return sv->sd == NULL;
118 if (!sv->sd)
119 return 0;
120 return S_ISREG(st.st_mode) && !match_stat_data(sv->sd, &st);
121}
122
123void stat_validity_update(struct stat_validity *sv, int fd)
124{

Callers 2

validate_snapshotFunction · 0.85

Calls 2

match_stat_dataFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected