Human Friendly Log
jj config edit --user
and add:
[templates]
log = "simple_log"
[template-aliases]
empty_commit_marker = "label('empty', '▢')"
simple_log = """
if(self.parents().len() > 1, raw_escape_sequence("\b\b")) ++
separate(" ",
pad_end(
4,
separate("/",
self.change_id().shortest(),
if(self.divergent() || self.hidden(), self.change_offset())
)
),
if(self.empty(), empty_commit_marker),
self.bookmarks(),
self.description().first_line()
)
"""
Don't bother trying to understand the code above just yet. We will get to it.
And yes! Jujutsu provides you with a real purely functional programming language for defining templates. That's crazy powerful!