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

Method record_with_message

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

870 /// let result = repo.record_with_message("Fix bug", RecordOptions::default())?;
871 /// ```
872 pub fn record_with_message(
873 &self,
874 message: impl Into<String>,
875 options: RecordOptions,
876 ) -> Result<RecordOutcome, RecordError> {
877 let header = ChangeHeader::builder().message(message).build();
878 self.record(header, options)
879 }
880
881 /// Fast path for external importers (e.g. git-import) that already have
882 /// 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