mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 08:53:16 +00:00
cli: move revsets.log
default to config file
This commit is contained in:
parent
f958957f9e
commit
3dab92d2e9
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
# NOTE: ensure you update docs/revsets.md with documentation when
|
||||
# adding/updating any of these aliases
|
||||
|
||||
[revsets]
|
||||
log = "@ | ancestors(immutable_heads().., 2) | trunk()"
|
||||
|
||||
[revset-aliases]
|
||||
'trunk()' = '''
|
||||
latest(
|
||||
|
|
|
@ -205,9 +205,7 @@ impl UserSettings {
|
|||
}
|
||||
|
||||
pub fn default_revset(&self) -> String {
|
||||
self.config
|
||||
.get_string("revsets.log")
|
||||
.unwrap_or_else(|_| "@ | ancestors(immutable_heads().., 2) | trunk()".to_string())
|
||||
self.config.get_string("revsets.log").unwrap_or_default()
|
||||
}
|
||||
|
||||
pub fn signature(&self) -> Signature {
|
||||
|
|
Loading…
Reference in a new issue