diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-08-28 13:09:55 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-09-05 13:55:30 +0200 |
commit | 7774fe0ab37bb07832ef7349a3f7c080f9d908e1 (patch) | |
tree | 3dde7e09c8f6ca80de2e0ec01b4c943c92a6d01d /pkg/commands/git_commands/working_tree_test.go | |
parent | f7db17f7d05280d83d57f7266dbc4e9d3ba2c48a (diff) |
Move diff context size from UserConfig to AppState
Diffstat (limited to 'pkg/commands/git_commands/working_tree_test.go')
-rw-r--r-- | pkg/commands/git_commands/working_tree_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/working_tree_test.go b/pkg/commands/git_commands/working_tree_test.go index 8137a96af..cc46d4994 100644 --- a/pkg/commands/git_commands/working_tree_test.go +++ b/pkg/commands/git_commands/working_tree_test.go @@ -309,9 +309,9 @@ func TestWorkingTreeDiff(t *testing.T) { s := s t.Run(s.testName, func(t *testing.T) { userConfig := config.GetDefaultConfig() - userConfig.Git.DiffContextSize = s.contextSize appState := &config.AppState{} appState.IgnoreWhitespaceInDiffView = s.ignoreWhitespace + appState.DiffContextSize = s.contextSize instance := buildWorkingTreeCommands(commonDeps{runner: s.runner, userConfig: userConfig, appState: appState}) result := instance.WorktreeFileDiff(s.file, s.plain, s.cached) @@ -375,9 +375,9 @@ func TestWorkingTreeShowFileDiff(t *testing.T) { s := s t.Run(s.testName, func(t *testing.T) { userConfig := config.GetDefaultConfig() - userConfig.Git.DiffContextSize = s.contextSize appState := &config.AppState{} appState.IgnoreWhitespaceInDiffView = s.ignoreWhitespace + appState.DiffContextSize = s.contextSize instance := buildWorkingTreeCommands(commonDeps{runner: s.runner, userConfig: userConfig, appState: appState}) |