@cli.register_custom_action('<STR_LIT>', ('<STR_LIT>', '<STR_LIT:to>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabGetError)<EOL>def repository_compare(self, from_, to, **kwargs):<DEDENT>
path = '<STR_LIT>' % self.get_id()<EOL>query_data = {'<STR_LIT>': from_, '<STR_LIT:to>': to}<EOL>return self.manager.gitlab.http_get(path, query_data=query_data,<EOL>**kwargs)<EOL>
Return a diff between two branches/commits.

        Args:
            from_(str): Source branch/SHA
            to(str): Destination branch/SHA
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabGetError: If the server failed to perform the request

        Returns:
            str: The diff