Create new branch

This commit is contained in:
2024-06-05 20:18:40 +02:00
parent 772f631768
commit 9f8fde3c60
2 changed files with 14 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ def checkout(oid):
data.update_ref("HEAD", oid)
def create_branch(name, oid):
data.update_ref(f"refs/heads/{name}", oid)
Commit = namedtuple("Commit", ["tree", "parent", "message"])