1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-01 13:17:53 +02:00

Change default of git.log.showGraph to 'always'

Most people seem to prefer it to be on.
This commit is contained in:
Stefan Haller 2024-02-07 09:18:25 +01:00
parent 0c5212ae0b
commit b1d05b6371
11 changed files with 21 additions and 8 deletions

View File

@ -104,7 +104,7 @@ git:
order: 'topo-order'
# one of always, never, when-maximised
# this determines whether the git graph is rendered in the commits panel
showGraph: 'when-maximised'
showGraph: 'always'
# displays the whole git graph by default in the commits panel (equivalent to passing the `--all` argument to `git log`)
showWholeGraph: false
skipHookPrefix: WIP

View File

@ -662,7 +662,7 @@ func GetDefaultConfig() *UserConfig {
},
Log: LogConfig{
Order: "topo-order",
ShowGraph: "when-maximised",
ShowGraph: "always",
ShowWholeGraph: false,
},
SkipHookPrefix: "WIP",

View File

@ -14,7 +14,9 @@ var Basic = NewIntegrationTest(NewIntegrationTestArgs{
NewBranch("mybranch").
CreateNCommits(10)
},
SetupConfig: func(cfg *config.AppConfig) {},
SetupConfig: func(cfg *config.AppConfig) {
cfg.UserConfig.Git.Log.ShowGraph = "never"
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
markCommitAsBad := func() {
t.Views().Commits().

View File

@ -14,7 +14,9 @@ var ChooseTerms = NewIntegrationTest(NewIntegrationTestArgs{
NewBranch("mybranch").
CreateNCommits(10)
},
SetupConfig: func(cfg *config.AppConfig) {},
SetupConfig: func(cfg *config.AppConfig) {
cfg.UserConfig.Git.Log.ShowGraph = "never"
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
markCommitAsFixed := func() {
t.Views().Commits().

View File

@ -13,7 +13,9 @@ var Skip = NewIntegrationTest(NewIntegrationTestArgs{
shell.
CreateNCommits(10)
},
SetupConfig: func(cfg *config.AppConfig) {},
SetupConfig: func(cfg *config.AppConfig) {
cfg.UserConfig.Git.Log.ShowGraph = "never"
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Commits().
Focus().

View File

@ -9,7 +9,9 @@ var CherryPickDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Cherry pick commits from the subcommits view during a rebase",
ExtraCmdArgs: []string{},
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupConfig: func(config *config.AppConfig) {
config.UserConfig.Git.Log.ShowGraph = "never"
},
SetupRepo: func(shell *Shell) {
shell.
EmptyCommit("base").

View File

@ -12,6 +12,7 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
GitVersion: AtLeast("2.38.0"),
SetupConfig: func(config *config.AppConfig) {
config.GetUserConfig().Git.MainBranches = []string{"master"}
config.UserConfig.Git.Log.ShowGraph = "never"
},
SetupRepo: func(shell *Shell) {
shell.

View File

@ -12,6 +12,7 @@ var QuickStartKeepSelection = NewIntegrationTest(NewIntegrationTestArgs{
GitVersion: AtLeast("2.38.0"),
SetupConfig: func(config *config.AppConfig) {
config.GetUserConfig().Git.MainBranches = []string{"master"}
config.UserConfig.Git.Log.ShowGraph = "never"
},
SetupRepo: func(shell *Shell) {
shell.

View File

@ -12,6 +12,7 @@ var QuickStartKeepSelectionRange = NewIntegrationTest(NewIntegrationTestArgs{
GitVersion: AtLeast("2.38.0"),
SetupConfig: func(config *config.AppConfig) {
config.GetUserConfig().Git.MainBranches = []string{"master"}
config.UserConfig.Git.Log.ShowGraph = "never"
},
SetupRepo: func(shell *Shell) {
shell.

View File

@ -9,7 +9,9 @@ var DoNotShowBranchMarkersInReflogSubcommits = NewIntegrationTest(NewIntegration
Description: "Verify that no branch heads are shown in the subcommits view of a reflog entry",
ExtraCmdArgs: []string{},
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupConfig: func(config *config.AppConfig) {
config.UserConfig.Git.Log.ShowGraph = "never"
},
SetupRepo: func(shell *Shell) {
shell.NewBranch("branch1")
shell.EmptyCommit("one")

View File

@ -530,7 +530,7 @@
"when-maximised"
],
"description": "This determines whether the git graph is rendered in the commits panel\nOne of 'always' | 'never' | 'when-maximised'",
"default": "when-maximised"
"default": "always"
},
"showWholeGraph": {
"type": "boolean",