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

Function graph_first_skip_summary

atomic-cli/src/commands/git/parallel.rs:819–846  ·  view source on GitHub ↗
(skips: &[GraphFirstSkip], parsed: &ParsedCommit)

Source from the content-addressed store, hash-verified

817}
818
819fn graph_first_skip_summary(skips: &[GraphFirstSkip], parsed: &ParsedCommit) -> String {
820 if skips.is_empty() {
821 return String::new();
822 }
823
824 skips
825 .iter()
826 .take(5)
827 .map(|skip| {
828 let lines = parsed
829 .files
830 .iter()
831 .find(|file| file.path == skip.path)
832 .and_then(|file| {
833 file.new_content
834 .as_deref()
835 .or(file.old_content.as_deref())
836 .map(count_line_units)
837 })
838 .unwrap_or(0);
839 format!(
840 "{} op={:?} reason={} lines={}",
841 skip.path, skip.operation, skip.reason, lines
842 )
843 })
844 .collect::<Vec<_>>()
845 .join("; ")
846}
847
848fn trace_git_import_enabled() -> bool {
849 std::env::var_os("ATOMIC_TRACE_GIT_IMPORT").is_some()

Callers 1

write_commitMethod · 0.85

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected