Use git grep -h for skipping the filenames

That seems to be more portable accross different environments
(aka make it work for dirk)

Change-Id: I4eee201ed0114cf7aa9f9be39d1335326691bf99
This commit is contained in:
Dirk Mueller 2017-02-21 16:18:36 +01:00
parent dfcb74f23a
commit 958b700317

View File

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