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

Method record_with_message

atomic-repository/src/repository/record.rs:1107–1114  ·  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 `message` - The change message `options` - Recording options # Example ```rust,ignore let result = repo.record_with_message("Fix bug", RecordOptions::default())?; ```

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

Source from the content-addressed store, hash-verified

1105 /// let result = repo.record_with_message("Fix bug", RecordOptions::default())?;
1106 /// ```
1107 pub fn record_with_message(
1108 &self,
1109 message: impl Into<String>,
1110 options: RecordOptions,
1111 ) -> Result<RecordOutcome, RecordError> {
1112 let header = ChangeHeader::builder().message(message).build();
1113 self.record(header, options)
1114 }
1115
1116 /// Fast path for external importers (e.g. git-import) that already have
1117 /// pre-built `RecordedFile`s and just need globalization + assembly + hashing.

Callers 1

record_allMethod · 0.80

Calls 3

buildMethod · 0.45
messageMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected