From bde7b8f4490c82461bf7d004e6916debc32e3e67 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 12 Feb 2022 17:09:53 -0800 Subject: [PATCH] cli: print working copy's operation ID instead of commit ID in debug command --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index f1353e9aa..04cc7de9d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -3656,7 +3656,7 @@ fn cmd_debug(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result< } else if let Some(_wc_matches) = args.subcommand_matches("workingcopy") { let workspace_command = command.workspace_helper(ui)?; let wc = workspace_command.working_copy(); - writeln!(ui, "Current commit: {:?}", wc.current_commit_id())?; + writeln!(ui, "Current operation: {:?}", wc.operation_id())?; writeln!(ui, "Current tree: {:?}", wc.current_tree_id())?; for (file, state) in wc.file_states().iter() { writeln!(