mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 03:22:59 +00:00
merge_tools: move "ui.diff-instructions" to CLI and config/misc.toml
There are no users of this option in jj-lib. Let's simplify it.
This commit is contained in:
parent
b118e2f208
commit
5df7a42915
3 changed files with 2 additions and 5 deletions
|
@ -5,6 +5,7 @@
|
||||||
tree-level-conflicts = true
|
tree-level-conflicts = true
|
||||||
|
|
||||||
[ui]
|
[ui]
|
||||||
|
diff-instructions = true
|
||||||
paginate = "auto"
|
paginate = "auto"
|
||||||
pager = { command = ["less", "-FRX"], env = { LESSCHARSET = "utf-8" } }
|
pager = { command = ["less", "-FRX"], env = { LESSCHARSET = "utf-8" } }
|
||||||
log-word-wrap = false
|
log-word-wrap = false
|
||||||
|
|
|
@ -182,7 +182,7 @@ impl DiffEditor {
|
||||||
Ok(DiffEditor {
|
Ok(DiffEditor {
|
||||||
tool,
|
tool,
|
||||||
base_ignores,
|
base_ignores,
|
||||||
use_instructions: settings.diff_instructions(),
|
use_instructions: settings.config().get_bool("ui.diff-instructions")?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,10 +228,6 @@ impl UserSettings {
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn diff_instructions(&self) -> bool {
|
|
||||||
self.config.get_bool("ui.diff-instructions").unwrap_or(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn config(&self) -> &config::Config {
|
pub fn config(&self) -> &config::Config {
|
||||||
&self.config
|
&self.config
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue