Write a recorded change to the repository. This method inserts a change that was just recorded, updating both the graph and the tree tables. It's the integration point between recording and inserting. Unlike `insert_change`, this method: - Takes the change directly (doesn't load from store) - Updates tree tables for FileAdd hunks - Assigns new inodes to added files # Arguments `outcome` - The
(
&self,
outcome: &RecordOutcome,
options: InsertOptions,
)
| 3042 | /// println!("Inserted with state: {}", apply_outcome.new_state.to_base32()); |
| 3043 | /// ``` |
| 3044 | pub fn write_recorded( |
| 3045 | &self, |
| 3046 | outcome: &RecordOutcome, |
| 3047 | options: InsertOptions, |
| 3048 | ) -> Result<InsertOutcome, RepositoryError> { |
| 3049 | self.write_recorded_replacing(outcome, options, None) |
| 3050 | } |
| 3051 | |
| 3052 | pub(super) fn write_recorded_replacing( |
| 3053 | &self, |