Don't show current commit in smartlog #1240
-
I want to use
so perhaps this is a "related commit" :) But is there a way I can have it show just my revset? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 ( 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: git-branchless/git-branchless-smartlog/src/lib.rs Lines 350 to 353 in c9dcc00 |
Beta Was this translation helpful? Give feedback.
-
An |
Beta Was this translation helpful? Give feedback.
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
ormaster
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:
git-branchless/git-branchless-smartlog/src/lib.rs
Lines 350 to 353 in c9dcc00