mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Move LocalBranchSortOrder and RemoteBranchSortOrder to user config
At the same time, we change the defaults for both of them to "date" (they were "recency" and "alphabetical", respectively, before). This is the reason we need to touch so many integration tests. For some of them I decided to adapt the test assertions to the changed sort order; for others, I added a SetupConfig step to set the order back to "recency" so that I don't have to change what the test does (e.g. how many SelectNextItem() calls are needed to get to a certain branch).
This commit is contained in:
@ -416,6 +416,25 @@
|
||||
"$ref": "#/$defs/LogConfig",
|
||||
"description": "Config for showing the log in the commits view"
|
||||
},
|
||||
"localBranchSortOrder": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"date",
|
||||
"recency",
|
||||
"alphabetical"
|
||||
],
|
||||
"description": "How branches are sorted in the local branches view.\nOne of: 'date' (default) | 'recency' | 'alphabetical'\nCan be changed from within Lazygit with the Sort Order menu (`s`) in the branches panel.",
|
||||
"default": "date"
|
||||
},
|
||||
"remoteBranchSortOrder": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"date",
|
||||
"alphabetical"
|
||||
],
|
||||
"description": "How branches are sorted in the remote branches view.\nOne of: 'date' (default) | 'alphabetical'\nCan be changed from within Lazygit with the Sort Order menu (`s`) in the remote branches panel.",
|
||||
"default": "date"
|
||||
},
|
||||
"truncateCopiedCommitHashesTo": {
|
||||
"type": "integer",
|
||||
"description": "When copying commit hashes to the clipboard, truncate them to this\nlength. Set to 40 to disable truncation.",
|
||||
|
Reference in New Issue
Block a user