author | Junio C Hamano <gitster@pobox.com> | |
Mon, 21 Jan 2008 08:44:50 +0000 (00:44 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Jan 2008 05:26:40 +0000 (21:26 -0800) | ||
commit | 6d91da6d3c170d026f2d7f79bbd7b657a6908cc8 | |
tree | adb7b336b0e7b0b06269fa250491ef5b17c1dbf2 | tree | snapshot |
parent | 077c48df8a72b046a2f562fedffa1c3d3a73a4e2 | commit | diff |
read-cache.c: introduce is_racy_timestamp() helper
This moves a common boolean expression into a helper function,
and makes the comparison between filesystem timestamp and index
timestamp done in the function in line with the other places.
st.st_mtime should be casted to (unsigned int) when compared to
an index timestamp ce_mtime.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This moves a common boolean expression into a helper function,
and makes the comparison between filesystem timestamp and index
timestamp done in the function in line with the other places.
st.st_mtime should be casted to (unsigned int) when compared to
an index timestamp ce_mtime.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c | diff | blob | history |