Record hash of last commit
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user