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

Function print_unmanaged_instructions

atomic-cli/src/commands/git/hooks.rs:373–383  ·  view source on GitHub ↗
(reason: &str, binary: &Path)

Source from the content-addressed store, hash-verified

371}
372
373pub(super) fn print_unmanaged_instructions(reason: &str, binary: &Path) -> CliResult<()> {
374 let command = integration_command(binary).map_err(|error| {
375 git_error(format!(
376 "cannot format hook integration instructions: {error}"
377 ))
378 })?;
379 print_warning(reason);
380 print_info("Add this advisory command to the existing post-checkout hook or hook manager:");
381 print_info(&format!(" {command}"));
382 Ok(())
383}
384
385fn install_or_refresh_dispatcher(path: &Path, script: &str) -> io::Result<DispatcherInstall> {
386 let metadata = match fs::symlink_metadata(path) {

Callers 3

enable_shimFunction · 0.85
uninstall_shimFunction · 0.85

Calls 4

integration_commandFunction · 0.85
print_warningFunction · 0.85
print_infoFunction · 0.85
git_errorFunction · 0.70

Tested by

no test coverage detected