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

Method record_with_message

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

878 /// let result = repo.record_with_message("Fix bug", RecordOptions::default())?;
879 /// ```
880 pub fn record_with_message(
881 &self,
882 message: impl Into<String>,
883 options: RecordOptions,
884 ) -> Result<RecordOutcome, RecordError> {
885 let header = ChangeHeader::builder().message(message).build();
886 self.record(header, options)
887 }
888
889 /// Fast path for external importers (e.g. git-import) that already have
890 /// 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