def read_all_commits(filename):
    """Read all commits from the given GIT log file."""
    commits = []
    with open(filename) as fin:
        for line in fin:
            splitted = line.strip().split(" ", 1)
            commits.append(splitted)
    commits.reverse()
    return commits