Make `Choice` fields `pijul_config::Config` non-optional
Dependencies
- [2]
SEWGHUHQ.pijul/config: simplify remotes and hooks - [3]
5BB266P6Optional colours in the global config file - [4]
ZSFJT4SFAllow remotes to have a different push and pull address - [5]
FVU3Y2U3Adding a local "unrecord_changes" option in addition to the global one - [6]
U6TQX5Z2pager function respects cli option and user config files, PAGER env var - [7]
ICEK2JVGAdd reset_overwrites_changes config option. When set to never --force is required for reset - [8]
NHVLSXLMUpdating reset with the new CLI refactoring - [9]
Z4PPQZUGRefactor `pijul-config` to support layered configuration - [10]
YW6NICQVMigrate codebase to refactored `pijul_config` crate - [11]
2ZKE4XMJReplace `pijul_repository::init_dot_ignore` with `pijul_config::Config::dot_ignore_contents` - [12]
FVQYZQFLCreate dialoguer themes based on global config - [13]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [14]
VQPAUKBQchannel switch as an alias to reset - [15]
Y6EVFMTADon't output files if they aren't in the current channel - [16]
56KJGRVORemove `atty` dependency - [17]
GLRGFBCWChecking the version of less we have - [18]
VL7ZYKHBRunning hooks through shell on Windows and Unix - [19]
H4AU6QRPNew config for HTTP remotes - [20]
KWAGWB73Adding extra dependencies from the config file
Change contents
- replacement in pijul-config/src/lib.rs at line 63
pub reset_overwrites_changes: Option<Choice>,pub colors: Option<Choice>,pub pager: Option<Choice>,pub reset_overwrites_changes: Choice,pub colors: Choice,pub pager: Choice, - replacement in pijul-config/src/lib.rs at line 188[9.7951]→[9.7951:8011](∅→∅),[9.8011]→[4.2398:2399](∅→∅),[4.2398]→[4.2398:2399](∅→∅),[4.2399]→[9.8012:8041](∅→∅)
let color_choice = self.colors.unwrap_or_default();match color_choice {match self.colors { - edit in pijul-config/src/defaults.toml at line 2
reset_overwrites_changes = "auto"colors = "auto"pager = "auto" - replacement in pijul/src/commands/reset.rs at line 36
let overwrite_changes = match config.reset_overwrites_changes.as_ref() {Some(pijul_config::Choice::Never) => false,Some(pijul_config::Choice::Auto) | Some(pijul_config::Choice::Always) | _ => true,let overwrite_changes = match config.reset_overwrites_changes {pijul_config::Choice::Never => false,pijul_config::Choice::Auto | pijul_config::Choice::Always => true, - replacement in pijul/src/commands/mod.rs at line 142
if let Some(pijul_config::Choice::Never) = config.pager {if let pijul_config::Choice::Never = config.pager { - replacement in pijul/src/commands/diff.rs at line 349
Some(pijul_config::Choice::Always) => colors = true,Some(pijul_config::Choice::Never) => colors = false,_ => {}pijul_config::Choice::Auto => (),pijul_config::Choice::Always => colors = true,pijul_config::Choice::Never => colors = false, - replacement in pijul/src/commands/diff.rs at line 354
Some(pijul_config::Choice::Never) => colors = false,pijul_config::Choice::Never => colors = false,