@staticmethod<EOL><INDENT>def parse_git_log_from_file(filepath):<DEDENT>
with open(filepath, '<STR_LIT:r>', errors='<STR_LIT>',<EOL>newline=os.linesep) as f:<EOL><INDENT>parser = GitParser(f)<EOL>for commit in parser.parse():<EOL><INDENT>yield commit<EOL><DEDENT><DEDENT>
Parse a Git log file.

        The method parses the Git log file and returns an iterator of
        dictionaries. Each one of this, contains a commit.

        :param filepath: path to the log file

        :returns: a generator of parsed commits

        :raises ParseError: raised when the format of the Git log file
            is invalid
        :raises OSError: raised when an error occurs reading the
            given file