Record hash of last commit

This commit is contained in:
2024-03-13 19:38:35 +01:00
parent 6a91c03f40
commit 1847cfbb17
2 changed files with 10 additions and 1 deletions

View File

@@ -81,7 +81,11 @@ def commit(message):
commit += "\n"
commit += f"{message}\n"
return data.hash_object(commit.encode(), "commit")
oid = data.hash_object(commit.encode(), "commit")
data.set_HEAD(oid)
return oid
def is_ignored(path):