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

Method anchor

atomic-cli/tests/it/git_projection_cb8a_test.rs:164–176  ·  view source on GitHub ↗

Anchor the shim (CB-7A) so git-side transitions adopt through the post-checkout hook (needed for ephemeral-view adoption tests).

(&self)

Source from the content-addressed store, hash-verified

162 /// Anchor the shim (CB-7A) so git-side transitions adopt through the
163 /// post-checkout hook (needed for ephemeral-view adoption tests).
164 fn anchor(&self) {
165 atomic_ok(
166 self.root(),
167 self.home(),
168 &[
169 "git",
170 "shim",
171 "enable",
172 "--binding-key-file",
173 self.key().to_str().expect("utf8 key path"),
174 ],
175 );
176 }
177
178 fn git(&self, args: &[&str]) -> String {
179 git(self.root(), args)

Calls 4

atomic_okFunction · 0.70
rootMethod · 0.45
homeMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected