Skip to content

Instantly share code, notes, and snippets.

@tonyfinn
Created October 21, 2024 11:23
Show Gist options
  • Save tonyfinn/ec20b873935c905a158fd12b80ae3b8c to your computer and use it in GitHub Desktop.
Save tonyfinn/ec20b873935c905a158fd12b80ae3b8c to your computer and use it in GitHub Desktop.
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