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

Method record_all

atomic-repository/src/repository/record.rs:4657–4666  ·  view source on GitHub ↗

Record all changes with a message. This is a convenience method that records all modified files. # Arguments `working_copy` - The validated physical working-copy identity `message` - The change message # Example ```rust,ignore let result = repo.record_all(working_copy, "Update all files")?; ```

(
        &self,
        working_copy: WorkingCopyId,
        message: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

4655 /// let result = repo.record_all(working_copy, "Update all files")?;
4656 /// ```
4657 pub fn record_all(
4658 &self,
4659 working_copy: WorkingCopyId,
4660 message: impl Into<String>,
4661 ) -> Result<RecordOutcome, RecordError> {
4662 self.validate_working_copy(working_copy)
4663 .map_err(RecordError::Repository)?;
4664 let options = RecordOptions::new().with_all(true);
4665 self.record_with_message(working_copy, message, options)
4666 }
4667}
4668
4669#[allow(clippy::too_many_arguments)]

Calls 3

validate_working_copyMethod · 0.80
with_allMethod · 0.45
record_with_messageMethod · 0.45