Narrow down the results/matches

If you run grep-all.sh requests, you get all the item that match that
prefix.  It is a little messy.  Make the match patten more specific so
you only get the library you pass on the command line.

Change-Id: I16544372f7efff28933da728d11f85dc5e5f9aea
This commit is contained in:
Tony Breeds 2017-02-15 13:17:33 +11:00
parent 119aa820cc
commit b4e3ac5714
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ declare -a branches=($(git describe --always) origin/master
)
function search() {
git grep -Ei "^${1}" ${2} -- "${3}" | cut -d: -f4-
git grep -Ei "^${1}[=><!]" ${2} -- "${3}" | cut -d: -f4-
}
printf '\nRequirements\n'