completion: let 'for-each-ref' and 'ls-remote' filter matching refs