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

Function split_graph_first_lines

atomic-cli/src/commands/git/parallel.rs:754–760  ·  view source on GitHub ↗
(content: &[u8])

Source from the content-addressed store, hash-verified

752}
753
754fn split_graph_first_lines(content: &[u8]) -> Vec<&[u8]> {
755 if content.is_empty() {
756 Vec::new()
757 } else {
758 content.split_inclusive(|&b| b == b'\n').collect()
759 }
760}
761
762fn import_shape_for_file(file: &ParsedFile, line_index: &ImportLineIndex) -> (usize, usize, usize) {
763 let indexed = line_index.files.get(&file.path).or_else(|| {

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected