Skip to content

Instantly share code, notes, and snippets.

@arialdomartini
Last active October 20, 2026 07:09
Show Gist options
  • Select an option

  • Save arialdomartini/dd9ef4c24648939ff7269f4ac075826f to your computer and use it in GitHub Desktop.

Select an option

Save arialdomartini/dd9ef4c24648939ff7269f4ac075826f to your computer and use it in GitHub Desktop.
jj simple_log
[template-aliases]
empty_commit_marker = "label('empty', '▢')"
simple_log = """
separate(" ",
pad_end(
4,
separate("/",
self.change_id().shortest(),
if(self.divergent() || self.hidden(), self.change_offset())
)
),
if(self.immutable(), "🔒", " ") ++ " ",
self.bookmarks(),
if(self.empty(), empty_commit_marker),
if(self.description(), self.description().first_line(), if(self.empty(), '', label('no_description', '←'))),
if(!self.mine(), self.author().name().replace(regex:" .*", ""))
)
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment