From: Matthias Krüger Date: Sun, 2 Jun 2013 06:31:06 +0000 (+0200) Subject: Try implementing some grep functionality for ./all script. X-Git-Tag: xonotic-v0.8.0~119^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b5a9c693b589922bd5aa6f97c18b7f04cce60043;p=xonotic%2Fxonotic.git Try implementing some grep functionality for ./all script. Basically works like ./all each -k git grep -I May still need some improvements. --- diff --git a/misc/tools/all/git.subr b/misc/tools/all/git.subr index 69ad888f..41150d8f 100644 --- a/misc/tools/all/git.subr +++ b/misc/tools/all/git.subr @@ -960,6 +960,14 @@ case "$cmd" in $ECHO " $SELF update|pull [-N] [-s | -h [-p] | -g [-p]] [-l de|nl|default]" handled=false ;; + grep) + for d in $repos; do + if verbose cd "$d0/$d"; then + git grep -I "$@" || true + cd "$d0" + fi + done + ;; *) handled=false ;;