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

Function set_times

statinfo.c:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static void set_times(struct stat *st, const struct stat_data *sd)
38{
39 st->st_ctime = sd->sd_ctime.sec;
40 st->st_mtime = sd->sd_mtime.sec;
41#ifdef NO_NSEC
42 ; /* nothing */
43#else
44#ifdef USE_ST_TIMESPEC
45 st->st_ctimespec.tv_nsec = sd->sd_ctime.nsec;
46 st->st_mtimespec.tv_nsec = sd->sd_mtime.nsec;
47#else
48 st->st_ctim.tv_nsec = sd->sd_ctime.nsec;
49 st->st_mtim.tv_nsec = sd->sd_mtime.nsec;
50#endif
51#endif
52}
53
54void fake_lstat_data(const struct stat_data *sd, struct stat *st)
55{

Callers 1

fake_lstat_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected