def log(self):
        """Parse git log history and return its content in a dictionary.

        :return: a dict representing git log entries
        """
        return list(
            parse_commits(run_git_log(os.path.join(self.repo_path, '.git'))))
Esempio n. 2
0
def git2json(fil):
    return json.dumps(list(parse_commits(fil.read())), ensure_ascii=False)
Esempio n. 3
0
def git2jsons(s):
    return json.dumps(list(parse_commits(s)), ensure_ascii=False)