|
7 | 7 | gogit "github.com/jesseduffield/go-git/v5"
|
8 | 8 | "github.com/jesseduffield/lazygit/pkg/commands/git_config"
|
9 | 9 | "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
|
10 |
| - "github.com/jesseduffield/lazygit/pkg/commands/patch" |
11 | 10 | "github.com/jesseduffield/lazygit/pkg/common"
|
12 | 11 | "github.com/jesseduffield/lazygit/pkg/config"
|
13 | 12 | "github.com/jesseduffield/lazygit/pkg/utils"
|
@@ -126,26 +125,6 @@ func buildWorkingTreeCommands(deps commonDeps) *WorkingTreeCommands {
|
126 | 125 | return NewWorkingTreeCommands(gitCommon, submoduleCommands, fileLoader)
|
127 | 126 | }
|
128 | 127 |
|
129 |
| -func buildPatchCommands(deps commonDeps) *PatchCommands { //nolint:golint,unused |
130 |
| - gitCommon := buildGitCommon(deps) |
131 |
| - rebaseCommands := buildRebaseCommands(deps) |
132 |
| - commitCommands := buildCommitCommands(deps) |
133 |
| - statusCommands := buildStatusCommands(deps) |
134 |
| - stashCommands := buildStashCommands(deps) |
135 |
| - loadFileFn := func(from string, to string, reverse bool, filename string, plain bool) (string, error) { |
136 |
| - return "", nil |
137 |
| - } |
138 |
| - patchBuilder := patch.NewPatchBuilder(gitCommon.Log, loadFileFn) |
139 |
| - |
140 |
| - return NewPatchCommands(gitCommon, rebaseCommands, commitCommands, statusCommands, stashCommands, patchBuilder) |
141 |
| -} |
142 |
| - |
143 |
| -func buildStatusCommands(deps commonDeps) *StatusCommands { //nolint:golint,unused |
144 |
| - gitCommon := buildGitCommon(deps) |
145 |
| - |
146 |
| - return NewStatusCommands(gitCommon) |
147 |
| -} |
148 |
| - |
149 | 128 | func buildStashCommands(deps commonDeps) *StashCommands {
|
150 | 129 | gitCommon := buildGitCommon(deps)
|
151 | 130 | fileLoader := buildFileLoader(gitCommon)
|
|
0 commit comments