cli_util: rename commit_working_copy() to snapshot_working_copy()

This commit is contained in:
Martin von Zweigbergk 2023-02-02 15:28:49 -08:00 committed by Martin von Zweigbergk
parent b0a6493d20
commit 6b7f8e5eab

View file

@ -512,7 +512,7 @@ impl WorkspaceCommandHelper {
let maybe_git_repo = self.repo.store().git_repo();
self.import_git_refs_and_head(ui, maybe_git_repo.as_ref().unwrap())?;
}
self.commit_working_copy(ui)?;
self.snapshot_working_copy(ui)?;
}
Ok(())
}
@ -818,7 +818,7 @@ impl WorkspaceCommandHelper {
Ok(())
}
pub fn commit_working_copy(&mut self, ui: &mut Ui) -> Result<(), CommandError> {
pub fn snapshot_working_copy(&mut self, ui: &mut Ui) -> Result<(), CommandError> {
let repo = self.repo.clone();
let workspace_id = self.workspace_id().to_owned();
let wc_commit_id = match repo.view().get_wc_commit_id(&workspace_id) {