summaryrefslogtreecommitdiff
path: root/t/t4013/diff.show_--patch-with-stat_--summary_side
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2013-06-20 10:37:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-20 15:50:17 -0700
commit38612532240ecbe1b12e54ca859fed8410ae6de1 (patch)
treef712bce08c4130f25bf4ca5717b82018a7b569fb /t/t4013/diff.show_--patch-with-stat_--summary_side
parentExtract a struct stat_data from cache_entry (diff)
downloadtgif-38612532240ecbe1b12e54ca859fed8410ae6de1.tar.xz
add a stat_validity struct
It can sometimes be useful to know whether a path in the filesystem has been updated without going to the work of opening and re-reading its content. We trust the stat() information on disk already to handle index updates, and we can use the same trick here. This patch introduces a "stat_validity" struct which encapsulates the concept of checking the stat-freshness of a file. It is implemented on top of "struct stat_data" to reuse the logic about which stat entries to trust for a particular platform, but hides the complexity behind two simple functions: check and update. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.show_--patch-with-stat_--summary_side')
0 files changed, 0 insertions, 0 deletions