[Intel-gfx] [PATCH] dim: Curb gc enthusiasm
Daniel Vetter
daniel.vetter at ffwll.ch
Tue Sep 26 08:41:37 UTC 2017
It also wants to delete drm-rerere/nightly.conf when that hasn't been
touched in a while. Prevent that in the future.
Chris Wilson hit that snag, which then seems to have percolated to
some other committers.
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Acked-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
dim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dim b/dim
index a63000fb67a8..db11d3f1cc68 100755
--- a/dim
+++ b/dim
@@ -554,7 +554,7 @@ function commit_rerere_cache
return 1
fi
git add ./*.patch >& /dev/null || true
- for file in $(git ls-files); do
+ for file in $(git ls-files | grep ^rr-cache); do
if ! git log --since="60 days ago" --name-only -- $file | grep $file &> /dev/null; then
git rm $file &> /dev/null || true
fi
--
2.14.1
More information about the Intel-gfx
mailing list