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,
)
| 1998 | /// println!("Created change: {}", result.hash().to_base32()); |
| 1999 | /// ``` |
| 2000 | pub fn record( |
| 2001 | &self, |
| 2002 | working_copy: WorkingCopyId, |
| 2003 | header: ChangeHeader, |
| 2004 | options: RecordOptions, |
| 2005 | ) -> Result<RecordOutcome, RecordError> { |
| 2006 | self.record_with_lifecycle( |
| 2007 | working_copy, |
| 2008 | header, |
| 2009 | options, |
| 2010 | super::snapshot::RecordLifecycle::Durable, |
| 2011 | ) |
| 2012 | } |
| 2013 | |
| 2014 | pub(super) fn record_with_lifecycle( |
| 2015 | &self, |