Skip to content

FR: jj log --limit=10 --reversed should show the 10 most recents commits #5403

@zx8

Description

@zx8

Is your feature request related to a problem? Please describe.

With git, if you do git log -n 10, it shows the 10 most recent commits. If you add the --reverse flag, you get the 10 most recent commits, in reverse order.

With jj, if you do jj log -n 10, it shows the 10 most recent commits. If you add the --reversed flag, you get the 10 oldest commits, from the beginning of time. This is not very useful.

Describe the solution you'd like

I would like jj to behave like git in this regard. The most recent commits are far more useful and common of a use case than the oldest commits, even in reverse order.

Describe alternatives you've considered

jj log --color=always --no-graph -T builtin_log_oneline --reversed | tail -n 10

Additional context

This should also work for jj op log and jj evolog.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions