dim: use git ls-files file matching instead of grep
PATCH 1/1 dim: use git ls-files file matching instead of grep
Avoid extra pipelines for no good reason.
Signed-off-by Jani Nikula <[email protected]>
--- dim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
@@ -602,7 +602,7 @@ function commit_rerere_cache return 1 fi git add ./*.patch >& /dev/null || true - for file in $(git ls-files | grep ^rr-cache); do + for file in $(git ls-files -- 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
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · Jani Nikula
Avoid extra pipelines for no good reason.
Signed-off-by Jani Nikula <[email protected]>
Reviewed-by Joonas Lahtinen <[email protected]>
Regards, Joonas
Signature · 7 lines
Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Joonas Lahtinen
Quoted 3 lines · Jani Nikula
Avoid extra pipelines for no good reason.
Signed-off-by Jani Nikula <[email protected]>Reviewed-by Joonas Lahtinen <[email protected]>
Pushed, thanks.
Jani.
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx