mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-12 16:44:58 -05:00
Merge branch 'jc/doc-timestamps-in-stat' into jch
Doc update. * jc/doc-timestamps-in-stat: CodingGuidelines: st_mtimespec vs st_mtim vs st_mtime
This commit is contained in:
@@ -693,6 +693,12 @@ For C programs:
|
||||
char *dogs[] = ...;
|
||||
walk_all_dogs(dogs);
|
||||
|
||||
- For file timestamps, do not use "st_mtim" (and other timestamp
|
||||
members in "struct stat") unconditionally; not everybody is POSIX
|
||||
(grep for USE_ST_TIMESPEC). If you only need timestamp in whole
|
||||
second resolution, "st_mtime" should work fine everywhere.
|
||||
|
||||
|
||||
For Perl programs:
|
||||
|
||||
- Most of the C guidelines above apply.
|
||||
|
||||
Reference in New Issue
Block a user