Skip to content

Don't show current commit in smartlog #1240

Closed Answered by claytonrcarter
adzenith asked this question in Q&A
Discussion options

You must be logged in to vote

also includes the currently checked out commit even if the query wouldn't otherwise include that commit

This was intentional, as the smartlog is primarily a situational awareness tool rather than a query or reporting tool. There are 2 commits always included to assist with understanding how the revset relates to the public commits (main or master or whatever) and to what you're currently working on (HEAD).

That said, it would not be hard to add a flag to turn this off. The code that adds these commits to the log is here:

// HEAD and main head must be included
let commits = commits
.union(&d…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adzenith
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants