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

Function trace_git_import

atomic-cli/src/commands/git/parallel.rs:2752–2758  ·  view source on GitHub ↗

A `git import` progress line: always in the log file, and on the terminal with `ATOMIC_TRACE_GIT_IMPORT`.

(message: impl AsRef<str>)

Source from the content-addressed store, hash-verified

2750/// A `git import` progress line: always in the log file, and on the terminal
2751/// with `ATOMIC_TRACE_GIT_IMPORT`.
2752pub(crate) fn trace_git_import(message: impl AsRef<str>) {
2753 let message = message.as_ref();
2754 tracing::info!(target: GIT_IMPORT_LOG_TARGET, "{message}");
2755 if trace_git_import_enabled() {
2756 eprintln!("[git-import] {message}");
2757 }
2758}
2759
2760struct SlowImportProgress {
2761 done: Option<mpsc::Sender<()>>,

Calls 2

trace_git_import_enabledFunction · 0.85
as_refMethod · 0.80

Tested by

no test coverage detected