This is the main entry point for creating a change from working copy modifications. It detects changes, creates hunks, globalizes positions, and assembles a complete change. # Arguments `working_copy` - The validated physical working-copy identity `header` - The change header (message, author, etc.) `options` - Options controlling recording behavior # Returns A `RecordOutcome` containing the r
(
&self,
working_copy: WorkingCopyId,
header: ChangeHeader,
options: RecordOptions,
)
| 1947 | /// println!("Created change: {}", result.hash().to_base32()); |
| 1948 | /// ``` |
| 1949 | pub fn record( |
| 1950 | &self, |
| 1951 | working_copy: WorkingCopyId, |
| 1952 | header: ChangeHeader, |
| 1953 | options: RecordOptions, |
| 1954 | ) -> Result<RecordOutcome, RecordError> { |
| 1955 | self.record_with_lifecycle( |
| 1956 | working_copy, |
| 1957 | header, |
| 1958 | options, |
| 1959 | super::snapshot::RecordLifecycle::Durable, |
| 1960 | ) |
| 1961 | } |
| 1962 | |
| 1963 | pub(super) fn record_with_lifecycle( |
| 1964 | &self, |