ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Yuya Nishihara d1912bf016 templater: add commit.diff().<format>() methods
This patch adds TreeDiff template type to host formatting options. The main
reason of this API design is that diff formats have various incompatible
parameters, so a single .diff(files, format[, options..]) method would become
messy pretty quickly. Another reason is that we can probably add custom
summary templating support as diff.files().map(|file| file.path()..).

RepoPathUiConverter is passed to templater explicitly because the one stored
in RevsetParseContext is behind Option<_>.
2024-07-17 18:52:49 +09:00
..
examples copy-tracking: stub get_copy_records 2024-07-03 20:26:30 -04:00
src templater: add commit.diff().<format>() methods 2024-07-17 18:52:49 +09:00
testing cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
tests templater: add commit.diff().<format>() methods 2024-07-17 18:52:49 +09:00
build.rs
Cargo.toml cli: use lossy string conversion to accept non-UTF-8 template outputs 2024-07-17 18:52:49 +09:00
LICENSE