pub fn create_snapshot<'repo>(
effects: &Effects,
git_run_info: &GitRunInfo,
repo: &'repo Repo,
event_log_db: &EventLogDb<'_>,
event_tx_id: EventTransactionId,
) -> Result<WorkingCopySnapshot<'repo>>
Expand description
Create a working copy snapshot containing the working copy’s current contents.
The working copy contents are not changed by this operation. That is, the caller would be responsible for discarding local changes (which might or might not be the natural next step for the operation).