MCPcopy Create free account
hub / github.com/git/git / start_batch

Method start_batch

src/loose.rs:553–557  ·  view source on GitHub ↗

Start a batch for efficient writing. If there is already a batch started, this does nothing and the existing batch is retained.

(&mut self)

Source from the content-addressed store, hash-verified

551 ///
552 /// If there is already a batch started, this does nothing and the existing batch is retained.
553 pub fn start_batch(&mut self) {
554 if self.batch.is_none() {
555 self.batch = Some(ObjectMemoryMap::new(self.mem.storage, self.mem.compat));
556 }
557 }
558
559 pub fn batch_len(&self) -> Option<usize> {
560 self.batch.as_ref().map(|b| b.len())

Callers 1

test_mapFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_mapFunction · 0.64