def _filtered_remotes(self, origin, skip=[]):
        """
        Returns a list of remote refs, skipping ones you don't need.

        If ``skip`` is empty, it will default to ``['HEAD',
        self.master_branch]``.
        """
        if not skip:
            skip = ['HEAD', self.master_branch]

        refs = [i for i in origin.refs if not i.remote_head in skip]

        return refs

        Returns a list of remote refs, skipping ones you don't need.

        If ``skip`` is empty, it will default to ``['HEAD',
        self.master_branch]``.
        
src/gitsweep/base.py