mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-27 18:11:12 +00:00
cli: print working copy's operation ID instead of commit ID in debug command
This commit is contained in:
parent
e098c01935
commit
bde7b8f449
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user