mtime is when the file contents last changed, ctime when attributes in
the inode last changed. We want the former. For some reason ctime in
my rr-cache is always very recent.

Signed-off-by: Daniel Vetter <daniel.vet...@intel.com>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 96aaf7101d6b..9c58d70d786d 100755
--- a/dim
+++ b/dim
@@ -523,7 +523,7 @@ function commit_rerere_cache
                                git rm $file &> /dev/null
                        fi
                done
-               find rr-cache/ -ctime -1 -type f -print0 | xargs -0 git add > 
/dev/null
+               find rr-cache/ -mtime -1 -type f -print0 | xargs -0 git add > 
/dev/null
                git rm rr-cache/rr-cache &> /dev/null || true
                if git commit -m "$time: $integration_branch rerere cache 
update" >& /dev/null; then
                        echo -n "New commit. "
-- 
2.13.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to