MCPcopy Index your code
hub / github.com/git/git / copy_times

Function copy_times

copy.c:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static int copy_times(const char *dst, const char *src)
26{
27 struct stat st;
28 struct utimbuf times;
29 if (stat(src, &st) < 0)
30 return -1;
31 times.actime = st.st_atime;
32 times.modtime = st.st_mtime;
33 if (utime(dst, &times) < 0)
34 return -1;
35 return 0;
36}
37
38int copy_file(const char *dst, const char *src, int mode)
39{

Callers 1

copy_file_with_timeFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected