mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-16 00:56:23 +00:00
cli: enable pager on status
The status output may be long, so the pager can useful. Now that we pass `-F` to the pager by default, it should also be fine to use the pager for short output. For reference, `hg` pages `status` output, but `git` doesn't.
This commit is contained in:
parent
e95b8edca1
commit
cb9ba5abc1
1 changed files with 1 additions and 0 deletions
|
@ -1946,6 +1946,7 @@ fn cmd_status(
|
|||
let maybe_checkout = maybe_checkout_id
|
||||
.map(|id| repo.store().get_commit(id))
|
||||
.transpose()?;
|
||||
ui.request_pager();
|
||||
let mut formatter = ui.stdout_formatter();
|
||||
let formatter = formatter.as_mut();
|
||||
if let Some(wc_commit) = &maybe_checkout {
|
||||
|
|
Loading…
Reference in a new issue