From 8bf1b46bd841c4eb7f24c98c2727968c15b3c112 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 12 Sep 2018 13:10:08 +1000 Subject: [PATCH] [tools/grep-all] Hide eol releases by default As we collect more history displaying all the EOL releases becomes noise to filter out. Hide eol tags by default but provide a quick way to display them again if wanted. Change-Id: I89d0c9ae2fa2e94505d44bfa8d2e0b0f00e1d842 --- tools/grep-all.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/grep-all.sh b/tools/grep-all.sh index bf3c3d28ce..62392c1c4f 100755 --- a/tools/grep-all.sh +++ b/tools/grep-all.sh @@ -16,7 +16,11 @@ # readable declare -a refs=($(git describe --always) origin/master) refs+=($(git branch --no-color -r --list 'origin/stable/*' | sort -r -t/ -k 3)) -refs+=($(git tag --list '*-eol' | sort -r)) + +if [ "$1" == "--with-eol" ] ; then + refs+=($(git tag --list '*-eol' | sort -r)) + shift 1 +fi if [ $# -ne 1 ]; then echo "Usage: $0 dependency-name" 1>&2