Record changes with a simple message. This is a convenience method that creates a change header with just a message. # Arguments `working_copy` - The validated physical working-copy identity `message` - The change message `options` - Recording options # Example ```rust,ignore let result = repo.record_with_message(working_copy, "Fix bug", RecordOptions::default())?; ```
(
&self,
working_copy: WorkingCopyId,
message: impl Into<String>,
options: RecordOptions,
)
| 4442 | /// let result = repo.record_with_message(working_copy, "Fix bug", RecordOptions::default())?; |
| 4443 | /// ``` |
| 4444 | pub fn record_with_message( |
| 4445 | &self, |
| 4446 | working_copy: WorkingCopyId, |
| 4447 | message: impl Into<String>, |
| 4448 | options: RecordOptions, |
| 4449 | ) -> Result<RecordOutcome, RecordError> { |
| 4450 | self.validate_working_copy(working_copy) |
| 4451 | .map_err(RecordError::Repository)?; |
| 4452 | let header = ChangeHeader::builder().message(message).build(); |
| 4453 | self.record(working_copy, header, options) |
| 4454 | } |
| 4455 | |
| 4456 | /// Fast path for external importers (e.g. git-import) that already have |
| 4457 | /// pre-built `RecordedFile`s and just need globalization + assembly + hashing. |