3 #=======================================================================
5 # File ID: 81eb015e-87fb-11e0-9674-fefdb24f8e10
6 # List all Git branches where all the specified refs exists
7 # License: GNU General Public License version 2 or later.
8 #=======================================================================
11 test -z "$urevs" && urevs
=HEAD
15 git log
-1 $u &>/dev
/null ||
{ echo $u: Invalid ref
>&2; exit 1; }
17 git branch -a --contains=$u |
19 grep -v -e '(no branch)' -e '->' -e "^
$u\$
"
23 echo $revs |
fmt -1 |
tr -d ' ' |
sort |
uniq -c |
tr -s ' ' \
24 |
grep "^ $count " | cut
-f 3 -d ' ' |
sort