Created
October 21, 2024 11:23
-
-
Save tonyfinn/ec20b873935c905a158fd12b80ae3b8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jj-latest-description --description "Get latest non-empty commit description and bookmarks" | |
jj log -r 'latest(ancestors(@, 10) ~ (empty()~merges()))' \ | |
--quiet --no-pager --no-graph --ignore-working-copy --color always \ | |
-T "surround('(', ')', separate(' ', \ | |
self.local_bookmarks(), \ | |
coalesce(self.description().first_line(), '...'), \ | |
self.change_id().shortest(5)\ | |
))" 2>/dev/null | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment