mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Git / git-grepall.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 W. Trevor King <wking@drexel.edu>
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation, either version 3 of the
8 # License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this program.  If not, see
17 # <http://www.gnu.org/licenses/>.
18
19
20 PATTERN="$1"
21 shift
22 for BRANCH in $(git branch --no-color --no-column | grep -v '\*'); do
23         git --no-pager grep "$PATTERN" "$BRANCH" -- "$@"
24 done