Reinsert a previously unrecorded change at a specific position. This is part of the Gerrit-like workflow where a change can be removed, modified, and re-inserted at its original position (or appended). # Arguments `hash` - Hash of the change to reinsert `at_sequence` - The sequence position to insert at (None = append to end) # Returns The new state and sequence after reinsertion. # Example
(
&self,
hash: &Hash,
at_sequence: Option<u64>,
)
| 656 | /// repo.reinsert_change(&hash, outcome.original_sequence)?; |
| 657 | /// ``` |
| 658 | pub fn reinsert_change( |
| 659 | &self, |
| 660 | hash: &Hash, |
| 661 | at_sequence: Option<u64>, |
| 662 | ) -> Result<(Merkle, u64), RepositoryError> { |
| 663 | let view = self.authoritative_working_copy_view_name()?; |
| 664 | self.reinsert_change_on_view(&view, hash, at_sequence) |
| 665 | } |
| 666 | |
| 667 | /// Reinsert a change into an explicit view at its original or requested sequence. |
| 668 | pub fn reinsert_change_on_view( |