forked from mirrors/jj
local_working_copy: fix warnings ending up on stdout
As suggested by @crackcomm on discord, use eprintln!() to print warnings to avoid messing up template output, e.g.: jj --no-pager --ignore-working-copy show --tool true -T change_id -r rv... rv...ignoring git submodule at "some/submodule" Signed-off-by: Tim Janik <timj@gnu.org>
This commit is contained in:
parent
ffd7b41d2b
commit
219a63540f
1 changed files with 2 additions and 2 deletions
|
@ -1416,7 +1416,7 @@ impl TreeState {
|
|||
}
|
||||
}
|
||||
MaterializedTreeValue::GitSubmodule(_) => {
|
||||
println!("ignoring git submodule at {path:?}");
|
||||
eprintln!("ignoring git submodule at {path:?}");
|
||||
FileState::for_gitsubmodule()
|
||||
}
|
||||
MaterializedTreeValue::Tree(_) => {
|
||||
|
@ -1463,7 +1463,7 @@ impl TreeState {
|
|||
panic!("unexpected conflict entry in diff at {path:?}");
|
||||
}
|
||||
TreeValue::GitSubmodule(_id) => {
|
||||
println!("ignoring git submodule at {path:?}");
|
||||
eprintln!("ignoring git submodule at {path:?}");
|
||||
FileType::GitSubmodule
|
||||
}
|
||||
TreeValue::Tree(_id) => {
|
||||
|
|
Loading…
Reference in a new issue