mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-28 23:32:41 +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
|
let maybe_checkout = maybe_checkout_id
|
||||||
.map(|id| repo.store().get_commit(id))
|
.map(|id| repo.store().get_commit(id))
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
|
ui.request_pager();
|
||||||
let mut formatter = ui.stdout_formatter();
|
let mut formatter = ui.stdout_formatter();
|
||||||
let formatter = formatter.as_mut();
|
let formatter = formatter.as_mut();
|
||||||
if let Some(wc_commit) = &maybe_checkout {
|
if let Some(wc_commit) = &maybe_checkout {
|
||||||
|
|
Loading…
Reference in a new issue