(&self, prefix: &str)
| 180 | } |
| 181 | |
| 182 | fn refs(&self, prefix: &str) -> Vec<String> { |
| 183 | git( |
| 184 | self.root(), |
| 185 | &["for-each-ref", "--format=%(refname)", prefix], |
| 186 | ) |
| 187 | .lines() |
| 188 | .map(str::to_string) |
| 189 | .collect() |
| 190 | } |
| 191 | |
| 192 | /// Whether the Git worktree and index are clean. |
| 193 | fn git_is_clean(&self) -> bool { |
no test coverage detected