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

Function fill_stat_data

statinfo.c:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void fill_stat_data(struct stat_data *sd, struct stat *st)
25{
26 sd->sd_ctime.sec = (unsigned int)st->st_ctime;
27 sd->sd_mtime.sec = (unsigned int)st->st_mtime;
28 sd->sd_ctime.nsec = ST_CTIME_NSEC(*st);
29 sd->sd_mtime.nsec = ST_MTIME_NSEC(*st);
30 sd->sd_dev = st->st_dev;
31 sd->sd_ino = st->st_ino;
32 sd->sd_uid = st->st_uid;
33 sd->sd_gid = st->st_gid;
34 sd->sd_size = munge_st_size(st->st_size);
35}
36
37static void set_times(struct stat *st, const struct stat_data *sd)
38{

Callers 5

add_patternsFunction · 0.85
valid_cached_dirFunction · 0.85
stat_validity_updateFunction · 0.85
fill_stat_cache_infoFunction · 0.85

Calls 1

munge_st_sizeFunction · 0.85

Tested by 1