Message ID | 20170926084137.12765-1-daniel.vetter@ffwll.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Quoting Daniel Vetter (2017-09-26 09:41:37) > 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@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> > Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> It would have prevented my earlier distress and several "rm -rf; dim setup; swear" Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> -Chris
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