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,
)
| 3091 | /// println!("Inserted with state: {}", apply_outcome.new_state.to_base32()); |
| 3092 | /// ``` |
| 3093 | pub fn write_recorded( |
| 3094 | &self, |
| 3095 | outcome: &RecordOutcome, |
| 3096 | options: InsertOptions, |
| 3097 | ) -> Result<InsertOutcome, RepositoryError> { |
| 3098 | self.write_recorded_replacing(outcome, options, None) |
| 3099 | } |
| 3100 | |
| 3101 | pub(super) fn write_recorded_replacing( |
| 3102 | &self, |