Create new branch
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user