Generalize HEAD to refs

This commit is contained in:
2024-04-12 17:19:14 +02:00
parent cb8e744794
commit 1f947e6343
3 changed files with 9 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ def commit(args):
def log(args):
oid = args.oid or data.get_HEAD()
oid = args.oid or data.get_ref("HEAD")
while oid:
commit = base.get_commit(oid)
@@ -101,5 +101,5 @@ def checkout(args):
def tag(args):
oid = args.oid or data.get_HEAD()
oid = args.oid or data.get_ref("HEAD")
base.create_tag(args.name, oid)