Files
gitapi/test2.py
2025-11-14 22:47:39 +01:00

7 lines
187 B
Python

from gitapi import *
repo = Git(r"C:\Users\Kuba\AppData\Local\Temp\git\new")
head, _ = repo.get_head()
print(head)
commit = repo.get_object(head, load_data=True)
print(commit.tree.files)