7 lines
187 B
Python
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) |