feature: agrego opcion para agrupar ramas release
This commit is contained in:
+3
-3
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user