Skip to content

Instantly share code, notes, and snippets.

@xpe
Created June 1, 2026 18:22
Show Gist options
  • Select an option

  • Save xpe/cacf99ccdbc2b85207c816ce7895f74e to your computer and use it in GitHub Desktop.

Select an option

Save xpe/cacf99ccdbc2b85207c816ce7895f74e to your computer and use it in GitHub Desktop.
Jujutsu has a powerful templating language
jj log -G -r 'all()' \
-T 'change_id.shortest() ++ "\n" ++ description.lines().map(|line| pad_start(6, line.len()) ++ "\t" ++ line).join("\n") ++ "\n\n"'
w


x
    47	chore: use eponymous module file, not `mod.rs`!

y
    33	chore: rename to `solver/demo.rs`

s
    26	feat: add basic Z3 example

qq
    31	feat: add basic CLI with `bpaf`

vl
    28	chore: add `bpaf` dependency

yy
    35	refactor: restructure render module
     0	
    54	Move render.rs to render/ansi.rs, introduce Config and
    56	Renderer structs, add Grid accessors for colors and dim.

vzl
    44	Introduce Grid, GridDim; reorganize examples
     0	
    59	Extract Grid and GridDim from the loose (Vec<Color>, usize)
    60	tuple and parse_grid function in render.rs. Rename grids::g1
    55	to examples::name and update callers. Add a blank 27×21
    56	example. Move InvalidColor adjacent to Color; add a stub
    10	Cell type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment