Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(smartlog): add --reverse option #790

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

wabain
Copy link
Contributor

@wabain wabain commented Feb 11, 2023

This pull request adds a flag for reverse-chronological smartlog output. 😈 As far as I can tell, all that's needed is to swap the split and merge glyphs and then to reverse the order when outputting the smartlog line by line.

I've continued to emit hints at the end of the output, mostly just because that was the path of least resistance. I'm agnostic on whether it would make sense to move them to the top.

Copy link
Owner

@arxanas arxanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks!

git-branchless-smartlog/src/lib.rs Show resolved Hide resolved
@arxanas arxanas merged commit 81e9f1d into arxanas:master Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants