diff options
author | Alex March <alexmarch@fastmail.com> | 2024-02-08 17:27:58 +0900 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-02-16 13:23:35 +0100 |
commit | e354a9bb486842e8e9376d27ef72f405a2dba7b3 (patch) | |
tree | 43c678b2bddda518f30edd42ac71988cda1a9532 /pkg/commands/git_commands/commit_loader_test.go | |
parent | b01bad7fad62ec54616d9cb9f0958da1d65c7aac (diff) |
Deprecate git.log.showGraph and git.log.order config
Added identical properties to AppState that should eventually have their defaults set.
Diffstat (limited to 'pkg/commands/git_commands/commit_loader_test.go')
-rw-r--r-- | pkg/commands/git_commands/commit_loader_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/commit_loader_test.go b/pkg/commands/git_commands/commit_loader_test.go index 3f8fbd58e..4792b4dff 100644 --- a/pkg/commands/git_commands/commit_loader_test.go +++ b/pkg/commands/git_commands/commit_loader_test.go @@ -10,6 +10,7 @@ import ( "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/commands/types/enums" + "github.com/jesseduffield/lazygit/pkg/config" "github.com/jesseduffield/lazygit/pkg/utils" "github.com/stretchr/testify/assert" ) @@ -305,7 +306,8 @@ func TestGetCommits(t *testing.T) { scenario := scenario t.Run(scenario.testName, func(t *testing.T) { common := utils.NewDummyCommon() - common.UserConfig.Git.Log.Order = scenario.logOrder + common.AppState = &config.AppState{} + common.AppState.GitLogOrder = scenario.logOrder builder := &CommitLoader{ Common: common, |