mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 16:53:25 +00:00
cli: pass UserSettings in to update_working_copy() explicitly
This commit is contained in:
parent
4b1008271b
commit
69bfaf8b76
1 changed files with 3 additions and 1 deletions
|
@ -953,6 +953,7 @@ impl WorkspaceCommandHelper {
|
|||
&self.workspace_id(),
|
||||
self.workspace.working_copy_mut(),
|
||||
maybe_old_commit.as_ref(),
|
||||
&self.settings,
|
||||
)?;
|
||||
if let Some(stats) = stats {
|
||||
print_checkout_stats(ui, stats)?;
|
||||
|
@ -1227,6 +1228,7 @@ pub fn update_working_copy(
|
|||
workspace_id: &WorkspaceId,
|
||||
wc: &mut WorkingCopy,
|
||||
old_commit: Option<&Commit>,
|
||||
settings: &UserSettings,
|
||||
) -> Result<Option<CheckoutStats>, CommandError> {
|
||||
let new_commit_id = match repo.view().get_wc_commit_id(workspace_id) {
|
||||
Some(new_commit_id) => new_commit_id,
|
||||
|
@ -1267,7 +1269,7 @@ pub fn update_working_copy(
|
|||
repo.as_repo_ref(),
|
||||
workspace_id,
|
||||
&new_commit,
|
||||
ui.settings(),
|
||||
settings,
|
||||
)?;
|
||||
ui.write("\n")?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue