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:
Martin von Zweigbergk 2022-12-04 06:10:03 -08:00 committed by Martin von Zweigbergk
parent e95b8edca1
commit cb9ba5abc1

View file

@ -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 {