@cli.register_custom_action('<STR_LIT>', optional=('<STR_LIT:type>',))<EOL><INDENT>@exc.on_http_error(exc.GitlabGetError)<EOL>def refs(self, type='<STR_LIT:all>', **kwargs):<DEDENT>
path = '<STR_LIT>' % (self.manager.path, self.get_id())<EOL>data = {'<STR_LIT:type>': type}<EOL>return self.manager.gitlab.http_get(path, query_data=data, **kwargs)<EOL>
List the references the commit is pushed to.

        Args:
            type (str): The scope of references ('branch', 'tag' or 'all')
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabGetError: If the references could not be retrieved

        Returns:
            list: The references the commit is pushed to.