diff options
author | Scott Lobdell <slobdell@google.com> | 2021-02-23 11:55:03 -0800 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2021-02-23 11:55:03 -0800 |
commit | 1c618aab4f151b23e900cd67af5ad908178a3683 (patch) | |
tree | 4d94350151d5f37986c36522b175530c8a16ef7e /envsetup.sh | |
parent | b606ac31b206e5f6c98a6593e4ecade23a694a8f (diff) | |
parent | b70f6c81533d53225422063618d41987fca6db8f (diff) |
Merge SP1A.210222.001
Change-Id: Ia2cccc68a182bc3df9871228f4b1693b2db619ec
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh index 80b3164ed6..6b0aaa9f73 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -27,6 +27,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y - mangrep: Greps on all local AndroidManifest.xml files. - mgrep: Greps on all local Makefiles and *.bp files. - owngrep: Greps on all local OWNERS files. +- rgrep: Greps on all local Rust files. - sepgrep: Greps on all local sepolicy files. - sgrep: Greps on all local source files. - godir: Go to the directory containing a file. @@ -1038,6 +1039,12 @@ function jgrep() -exec grep --color -n "$@" {} + } +function rgrep() +{ + find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.rs" \ + -exec grep --color -n "$@" {} + +} + function cgrep() { find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \ |