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'))))
def git2json(fil): return json.dumps(list(parse_commits(fil.read())), ensure_ascii=False)
def git2jsons(s): return json.dumps(list(parse_commits(s)), ensure_ascii=False)