aboutsummaryrefslogtreecommitdiff
path: root/refstore/reftable/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'refstore/reftable/path.go')
-rw-r--r--refstore/reftable/path.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/refstore/reftable/path.go b/refstore/reftable/path.go
new file mode 100644
index 00000000..3bdaf5cd
--- /dev/null
+++ b/refstore/reftable/path.go
@@ -0,0 +1,8 @@
+package reftable
+
+import "path"
+
+// pathMatch applies path.Match to full ref names.
+func pathMatch(pattern, name string) (bool, error) {
+ return path.Match(pattern, name)
+}