From bf3ce4dc034e41c4742a0f32e6883d0dfd0b9c1d Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Thu, 28 Sep 2017 12:42:27 +1000 Subject: [PATCH] [tools/grep-all.sh] Get branches from git Rather than hard code the branches to look at just do all the stable branches that exist. Change-Id: I8beb6ed5e537f37e707d1e04ad9c1174fd608544 --- tools/grep-all.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/grep-all.sh b/tools/grep-all.sh index de94673bee..ade74a3f61 100755 --- a/tools/grep-all.sh +++ b/tools/grep-all.sh @@ -14,12 +14,8 @@ # Note(tonyb): Expand HEAD into something that's hopefully more human # readable -declare -a branches=( - $(git describe --always) origin/master - origin/stable/pike - origin/stable/ocata - origin/stable/newton - ) +declare -a branches=($(git describe --always) origin/master) +branches+=($(git branch --no-color -r --list 'origin/stable/*')) function search { git grep -hEi "^${1}[=>