MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / refs

Method refs

atomic-cli/tests/it/git_projection_cb8a_test.rs:182–190  ·  view source on GitHub ↗
(&self, prefix: &str)

Source from the content-addressed store, hash-verified

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 {

Calls 4

gitFunction · 0.70
collectMethod · 0.45
linesMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected