From e2fe95903b891282267760edb528f44ad66bdbad Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Thu, 5 Mar 2020 11:34:16 -0800 Subject: [PATCH] Include .proto in sgrep() Test: use in frameworks/base Change-Id: I8104822cf69b09b3d11edb9261b8ab43029549d7 --- envsetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index d533d0d49c..fa8ba64388 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -954,7 +954,7 @@ case `uname -s` in Darwin) function sgrep() { - find -E . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.(c|h|cc|cpp|hpp|S|java|xml|sh|mk|aidl|vts)' \ + find -E . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.(c|h|cc|cpp|hpp|S|java|xml|sh|mk|aidl|vts|proto)' \ -exec grep --color -n "$@" {} + } @@ -962,7 +962,7 @@ case `uname -s` in *) function sgrep() { - find . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.\(c\|h\|cc\|cpp\|hpp\|S\|java\|xml\|sh\|mk\|aidl\|vts\)' \ + find . -name .repo -prune -o -name .git -prune -o -type f -iregex '.*\.\(c\|h\|cc\|cpp\|hpp\|S\|java\|xml\|sh\|mk\|aidl\|vts\|proto\)' \ -exec grep --color -n "$@" {} + } ;;