The sound distributed version control system

#628 pijul diff color outputs

Opened by m4b on January 21, 2022
m4b on January 21, 2022

Hello! Been trying out pijul after beta release for prototyping https://nest.pijul.com/m4b/slicefire, really enjoying so far!

So far in playing with some features, the major thing I miss from my git workflow is, surprisingly, diff color outputs on my terminal.

Specifically, it would be super awesome to see, e.g. pijul diff yield some basic green/red (?) coloring on - and +:

1. Edit in "src/lib.rs":25 4.48 "UTF-8"
  up 2.441, new 0:18, down 2.441
+ #[inline(always)]

2. Replacement in "src/lib.rs":27 4.48 "UTF-8"
B:BD 2.515 -> 2.515:591/2
  up 2.515, new 19:253, down 2.591
-     for i in indices {
-         if *i < vs.len() {
-             vs[*i] = val;
+     let t = Instant::now();
+     //    println!("Write discard using indices: {:?}", indices);
+     {
+         let t = Instant::now();
+         for i in indices {
+             if *i < vs.len() {
+                 vs[*i] = val;
+             }
AfoHT on January 22, 2022

It would be nice with some colors, maybe even Delta support?

I saw this one but have not tried it yet: https://nest.pijul.com/levi/pjcolor

toastal on November 24, 2023

If taken up, please provide a standard --no-color flag for other tooling.