Skip to content

Commit

Permalink
git grep in ExtJS for code only, returning paths
Browse files Browse the repository at this point in the history
  • Loading branch information
subtleGradient committed Sep 27, 2011
1 parent f07f779 commit be48d33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions f-ext
@@ -0,0 +1,9 @@
echo -n "$1" | pbcopy -pboard find

pushd "$(git rev-parse --show-toplevel)" &>/dev/null &
git grep --line-number --fixed-strings "$1" -- extjs/src platform/core/src platform/src \
|grep -v 'Binary file'\
|sed -E "s!^!$PWD/!"\
|sed -E 's!(^[^:]+):([0-9]+):.*$!\1!'\
|sort|uniq
popd &>/dev/null &

0 comments on commit be48d33

Please sign in to comment.