[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
This commit is contained in:
parent
d827e71b22
commit
bf3ce4dc03
@ -14,12 +14,8 @@
|
|||||||
|
|
||||||
# Note(tonyb): Expand HEAD into something that's hopefully more human
|
# Note(tonyb): Expand HEAD into something that's hopefully more human
|
||||||
# readable
|
# readable
|
||||||
declare -a branches=(
|
declare -a branches=($(git describe --always) origin/master)
|
||||||
$(git describe --always) origin/master
|
branches+=($(git branch --no-color -r --list 'origin/stable/*'))
|
||||||
origin/stable/pike
|
|
||||||
origin/stable/ocata
|
|
||||||
origin/stable/newton
|
|
||||||
)
|
|
||||||
|
|
||||||
function search {
|
function search {
|
||||||
git grep -hEi "^${1}[=><!]" ${2} -- "${3}"
|
git grep -hEi "^${1}[=><!]" ${2} -- "${3}"
|
||||||
|
Loading…
Reference in New Issue
Block a user