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

Method record_with_message

atomic-repository/src/repository/record.rs:1046–1053  ·  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

1044 /// let result = repo.record_with_message("Fix bug", RecordOptions::default())?;
1045 /// ```
1046 pub fn record_with_message(
1047 &self,
1048 message: impl Into<String>,
1049 options: RecordOptions,
1050 ) -> Result<RecordOutcome, RecordError> {
1051 let header = ChangeHeader::builder().message(message).build();
1052 self.record(header, options)
1053 }
1054
1055 /// Fast path for external importers (e.g. git-import) that already have
1056 /// 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