Print default remote if set but not registered in the database
Dependencies
- [2]
QCPIBC6MMake the default remote configurable through the cli - [3]
OWJL5HO7Allow deleting remote by URL and remove default remote if set to deleted remote - [4]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [5]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [6]
A3RM526YIntegrating identity malleability - [7]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in pijul/src/commands/pushpull.rs at line 91
let mut printed_default = false; - replacement in pijul/src/commands/pushpull.rs at line 95
writeln!(stdout, " {}: {}", r.id(), r.lock().path.as_str())?;let lock = r.lock();let mut flag = ' ';if Some(lock.path.as_str()) == repo.config.default_remote.as_deref() {printed_default = true;flag = '*';}writeln!(stdout, "{} {}: {}", flag, r.id(), lock.path.as_str())?; - edit in pijul/src/commands/pushpull.rs at line 105
if !printed_default {if let Some(path) = repo.config.default_remote {writeln!(stdout, "* {:26}: {}", "(none)", path)?;}}