diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-19 16:09:03 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-19 16:35:57 +1100 |
commit | 60f902f026559b1501b34ea3cfbacaf1fff168bf (patch) | |
tree | cca09391436d59a10ba342d528b4a8a14a5ccf09 /pkg/commands/git.go | |
parent | 7ce3165afa6e71ea853e9cddba279971f61579c1 (diff) |
rename patch manager to patch builder
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 35cead260..caf03db75 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -117,14 +117,14 @@ 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 manager take workingTreeCommands in its entirety - patchManager := patch.NewPatchManager(cmn.Log, workingTreeCommands.ApplyPatch, + // TODO: have patch builder take workingTreeCommands in its entirety + patchBuilder := patch.NewPatchBuilder(cmn.Log, workingTreeCommands.ApplyPatch, func(from string, to string, reverse bool, filename string, plain bool) (string, error) { - // TODO: make patch manager take Gui.IgnoreWhitespaceInDiffView into + // TODO: make patch builder take Gui.IgnoreWhitespaceInDiffView into // account. For now we just pass false. return workingTreeCommands.ShowFileDiff(from, to, reverse, filename, plain, false) }) - patchCommands := git_commands.NewPatchCommands(gitCommon, rebaseCommands, commitCommands, statusCommands, stashCommands, patchManager) + patchCommands := git_commands.NewPatchCommands(gitCommon, rebaseCommands, commitCommands, statusCommands, stashCommands, patchBuilder) bisectCommands := git_commands.NewBisectCommands(gitCommon) branchLoader := git_commands.NewBranchLoader(cmn, branchCommands.GetRawBranches, branchCommands.CurrentBranchInfo, configCommands) |