Create commit
This commit is contained in:
@@ -76,5 +76,13 @@ def read_tree(tree_oid):
|
||||
f.write(data.get_object(oid))
|
||||
|
||||
|
||||
def commit(message):
|
||||
commit = f"tree {write_tree()}\n"
|
||||
commit += "\n"
|
||||
commit += f"{message}\n"
|
||||
|
||||
return data.hash_object(commit.encode(), "commit")
|
||||
|
||||
|
||||
def is_ignored(path):
|
||||
return ".ugit" in path.split("/")
|
||||
|
||||
Reference in New Issue
Block a user