Generalize HEAD to refs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user