Files
chromium_depot_tools/git-gs
Garrett Beaty 7a9218d13f Enable searching starlark files with git gs.
Change-Id: Ib4688483cca43b10f88cfc529b03e119b8d2d267
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5119764
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Garrett Beaty <gbeaty@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2023-12-13 19:08:25 +00:00

10 lines
552 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
git grep -n -e "$@" -- "*.h" "*.hpp" "*.cpp" "*.c" "*.cc" "*.cpp" "*.inl"\
"*.grd" "*.grdp" "*.idl" "*.m" "*.mm" "*.py" "*.sh" "*.cfg" "*.tac" "*.go"\
"*.vcproj" "*.vsprops" "*.make" "*.gyp" "*.gypi" "*.isolate" "*.java"\
"*.js" "*.ts" "*.html" "*.css" "*.ebuild" "*.pl" "*.pm" "*.yaml" "*.gn"\
"*.gni" "*.json" "DEPS" "*/DEPS" "*.mojom" "*.proto" "*.rs" "*.star"