Last active
June 1, 2016 16:44
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/*" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to remove scons, include edc and Tools/Scripts, after discussing with @tmpsantos.