feature: agrego opcion para agrupar ramas release

This commit is contained in:
jt
2025-11-29 13:20:33 -03:00
parent 341e6239b2
commit c47afffa14
2 changed files with 23 additions and 8 deletions
+3 -3
View File
@@ -50,8 +50,8 @@ class Git:
return Git("rev-parse", "HEAD", abbrev_ref=True).firstline()
@staticmethod
def get_branches():
return Git._get_references("heads")
def get_branches(prefix: str = ""):
return Git._get_references("heads/" + prefix)
@staticmethod
def status():
@@ -79,7 +79,7 @@ class Git:
@staticmethod
def _get_references(kind: str):
prefix = "refs/" + kind + "/"
prefix = "refs/" + kind
return list(map(
lambda r: r.removeprefix(prefix),
Git("for-each-ref", prefix + "*", format="%(refname)").lines(),