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

Method uses_stream

atomic-cli/src/commands/git/import.rs:287–297  ·  view source on GitHub ↗
(&self, repository_exists: bool)

Source from the content-addressed store, hash-verified

285 }
286
287 fn uses_stream(&self, repository_exists: bool) -> bool {
288 !self.no_stream
289 && (self.stream
290 || self.uses_span()
291 || (!repository_exists
292 && !self.with_crdt
293 && !self.incremental
294 && !self.all_branches
295 && self.detached_tip.is_none()
296 && self.reactive_budget.is_none()))
297 }
298
299 fn stream_limits(&self) -> CliResult<atomic_repository::GitStreamLimits> {
300 let mib = usize::from(self.stream_window_mib.unwrap_or(32));

Callers 1

run_importMethod · 0.80

Calls 2

uses_spanMethod · 0.80
is_noneMethod · 0.80

Tested by

no test coverage detected