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

Method record_with_message

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

Record changes with a simple message. This is a convenience method that creates a change header with just a message. # Arguments `working_copy` - The validated physical working-copy identity `message` - The change message `options` - Recording options # Example ```rust,ignore let result = repo.record_with_message(working_copy, "Fix bug", RecordOptions::default())?; ```

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

Source from the content-addressed store, hash-verified

4442 /// let result = repo.record_with_message(working_copy, "Fix bug", RecordOptions::default())?;
4443 /// ```
4444 pub fn record_with_message(
4445 &self,
4446 working_copy: WorkingCopyId,
4447 message: impl Into<String>,
4448 options: RecordOptions,
4449 ) -> Result<RecordOutcome, RecordError> {
4450 self.validate_working_copy(working_copy)
4451 .map_err(RecordError::Repository)?;
4452 let header = ChangeHeader::builder().message(message).build();
4453 self.record(working_copy, header, options)
4454 }
4455
4456 /// Fast path for external importers (e.g. git-import) that already have
4457 /// pre-built `RecordedFile`s and just need globalization + assembly + hashing.

Callers 4

record_allMethod · 0.45
record_pathFunction · 0.45
recordFunction · 0.45

Calls 4

validate_working_copyMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45
recordMethod · 0.45

Tested by 3

record_pathFunction · 0.36
recordFunction · 0.36