[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
This commit is contained in:
Tony Breeds 2018-09-12 13:10:08 +10:00
parent 3314a6dbca
commit 8bf1b46bd8
1 changed files with 5 additions and 1 deletions

View File

@ -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