Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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!