Default feedback for the `pijul git` command
Dependencies
- [2]
SNZ3OAMCuse native external subcommand support instead of hand-rolled one - [3]
SFY4U6XEremove redundant conditional compilation - [4]
FMKKWCFVBetter clap attributes - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
IIV3EL2XCleanup, formatting, and fixing the Git feature - [7]
MU3NL6MDFixing `pijul git` with the new Sanakirja - [8]
RJMQSZERExternal commands - [9]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [10]
VGBH3ED6The Git feature does not need to be async - [11]
WXAFKN6JDo not call an external subcommand when the parsing of an existing subcommand fails - [12]
WFXSB6RADo not run `pijul git` if there are uncommitted changes - [*]
L4JXJHWXpijul/*: reorganize imports and remove extern crate
Change contents
- edit in pijul/src/main.rs at line 13[4.31][14.664]
use env_logger::fmt::Color; - replacement in pijul/src/main.rs at line 142
env_logger::init();env_logger_init(); - edit in pijul/src/main.rs at line 156
}fn env_logger_init() {let mut builder = env_logger::builder();builder.filter(Some("pijul::commands::git"), log::LevelFilter::Info);builder.format(|buf, record| {let target = record.metadata().target();if target == "pijul::commands::git" {let mut level_style = buf.style();level_style.set_color(Color::Green);writeln!(buf,"{} {}",level_style.value(record.level()),record.args())} else {let mut level_style = buf.style();level_style.set_color(Color::Black).set_intense(true);let op = level_style.value("[");let cl = level_style.value("]");writeln!(buf,"{}{} {} {}{} {}",op,buf.timestamp(),buf.default_styled_level(record.level()),target,cl,record.args())}});builder.init(); - replacement in pijul/src/commands/git.rs at line 68
info!("Loading history…");info!("Loading Git history…"); - replacement in pijul/src/commands/git.rs at line 77
info!("Done");debug!("Done");