#!/bin/sh remote=${1:-origin} git ls-remote $remote | while read hash ref; do case $ref in refs/namespaces/*) git fetch $remote $ref; git show $hash | sed '/^$/q';; esac done