File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ impl<'r> Iter<'r> {
32
32
}
33
33
34
34
impl Platform < ' _ > {
35
- /// Return an iterator over all references in the repository.
35
+ /// Return an iterator over all references in the repository, excluding
36
+ /// pseudo references.
36
37
///
37
38
/// Even broken or otherwise unparsable or inaccessible references are returned and have to be handled by the caller on a
38
39
/// case by case basis.
@@ -69,6 +70,12 @@ impl Platform<'_> {
69
70
) )
70
71
}
71
72
73
+ // TODO: tests
74
+ /// Return an iterator over all local pseudo references.
75
+ pub fn pseudo_refs ( & self ) -> Result < Iter < ' _ > , init:: Error > {
76
+ Ok ( Iter :: new ( self . repo , self . platform . psuedo_refs ( ) ?) )
77
+ }
78
+
72
79
// TODO: tests
73
80
/// Return an iterator over all remote branches.
74
81
///
You can’t perform that action at this time.
0 commit comments