Skip to content

Instantly share code, notes, and snippets.

@drott
Last active June 1, 2016 16:44
Show Gist options
  • Save drott/4672704 to your computer and use it in GitHub Desktop.
Save drott/4672704 to your computer and use it in GitHub Desktop.
I recommend putting git-gse in your $PATH then search for occurences of strings $@ in your repo, pretty fast.
#!/bin/sh
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Copyright (c) 2013 Dominik Röttsches
# 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" "*.idl" "*.m" "*.mm" "*.py" "*.sh" "*.cfg"\
"*.vcproj" "*.vsprops" "*.make"\
"*.gyp" "*.gypi" "*.js" "*.html" "*.css" "*.cmake" "*CMakeLists.txt"\
"*GNUmakefile.*"\
"*.edc"\
"*Tools/Scripts/*"
@drott
Copy link
Author

drott commented Jan 30, 2013

Updated to remove scons, include edc and Tools/Scripts, after discussing with @tmpsantos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment