Skip to contentSkip to conversation

dim: use git ls-files file matching instead of grep

PATCH In review Jani Nikula 2 participants 3 messages Oct 2, 2017 – Oct 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dim: use git ls-files file matching instead of grep

Avoid extra pipelines for no good reason.

---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
index 678f34d5f7bd..d2f165893161 100755
@@ -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