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

Method record_with_message

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

849 /// let result = repo.record_with_message("Fix bug", RecordOptions::default())?;
850 /// ```
851 pub fn record_with_message(
852 &self,
853 message: impl Into<String>,
854 options: RecordOptions,
855 ) -> Result<RecordOutcome, RecordError> {
856 let header = ChangeHeader::builder().message(message).build();
857 self.record(header, options)
858 }
859
860 /// Fast path for external importers (e.g. git-import) that already have
861 /// 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