summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-05-19 20:18:02 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-05-20 20:54:39 +1000
commitee11046d354e167abd6b6b3b6f6fa7157ea67a31 (patch)
treeca3b42cbf95b58fc3dd05a2cff1434aef422eaae /pkg/commands/git.go
parent25f8b0337e1e023fd9575ecd46467810c9f49824 (diff)
Refactor interface for ApplyPatch
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 4facd4f24..95e46086f 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -117,8 +117,7 @@ func NewGitCommandAux(
workingTreeCommands := git_commands.NewWorkingTreeCommands(gitCommon, submoduleCommands, fileLoader)
rebaseCommands := git_commands.NewRebaseCommands(gitCommon, commitCommands, workingTreeCommands)
stashCommands := git_commands.NewStashCommands(gitCommon, fileLoader, workingTreeCommands)
- // TODO: have patch builder take workingTreeCommands in its entirety
- patchBuilder := patch.NewPatchBuilder(cmn.Log, workingTreeCommands.ApplyPatch,
+ patchBuilder := patch.NewPatchBuilder(cmn.Log,
func(from string, to string, reverse bool, filename string, plain bool) (string, error) {
// TODO: make patch builder take Gui.IgnoreWhitespaceInDiffView into
// account. For now we just pass false.