summaryrefslogtreecommitdiff
path: root/usd/git_repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'usd/git_repository.py')
-rw-r--r--usd/git_repository.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/usd/git_repository.py b/usd/git_repository.py
index 93aa853..614c26a 100644
--- a/usd/git_repository.py
+++ b/usd/git_repository.py
@@ -629,6 +629,9 @@ class USDGitRepository:
def listall_branches(self):
return self._local_repo.listall_branches()
+ def listall_references_matching_regexp(self, regexp):
+ return filter(lambda r: regexp.match(r), self._local_repo.listall_references())
+
def annotated_tag(self, tag_name, commitish, force):
try:
args = ['tag', '-a', tag_name, commitish]