@cli.register_custom_action('<STR_LIT>', ('<STR_LIT>', '<STR_LIT>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabGetError)<EOL>def raw(self, file_path, ref, streamed=False, action=None, chunk_size=<NUM_LIT>,<EOL>**kwargs):<DEDENT>
file_path = file_path.replace('<STR_LIT:/>', '<STR_LIT>').replace('<STR_LIT:.>', '<STR_LIT>')<EOL>path = '<STR_LIT>' % (self.path, file_path)<EOL>query_data = {'<STR_LIT>': ref}<EOL>result = self.gitlab.http_get(path, query_data=query_data,<EOL>streamed=streamed, raw=True, **kwargs)<EOL>return utils.response_content(result, streamed, action, chunk_size)<EOL>
Return the content of a file for a commit.

        Args:
            ref (str): ID of the commit
            filepath (str): Path of the file to return
            streamed (bool): If True the data will be processed by chunks of
                `chunk_size` and each chunk is passed to `action` for
                treatment
            action (callable): Callable responsible of dealing with chunk of
                data
            chunk_size (int): Size of each chunk
            **kwargs: Extra options to send to the server (e.g. sudo)

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

        Returns:
            str: The file content