summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-07 20:36:11 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-09 14:09:53 +1100
commita7a61cdc83a047d9872b4d6f97a26abe4ca69a20 (patch)
treee3aeb4e04d81285ef0550cc9a66876f5d32837e5 /pkg
parentee8ff6512f50803a70a8ad8919dbfa6aa6ea089b (diff)
rearrange
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go52
1 files changed, 26 insertions, 26 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 59d5b90ef..e0a7a8635 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -20,32 +20,32 @@ import (
// GitCommand is our main git interface
type GitCommand struct {
- Loaders Loaders
-
- Submodule *SubmoduleCommands
- Tag *TagCommands
- WorkingTree *WorkingTreeCommands
- File *FileCommands
Branch *BranchCommands
Commit *CommitCommands
- Rebase *RebaseCommands
- Stash *StashCommands
- Status *StatusCommands
Config *ConfigCommands
+ Custom *CustomCommands
+ File *FileCommands
+ Flow *FlowCommands
Patch *PatchCommands
+ Rebase *RebaseCommands
Remote *RemoteCommands
+ Stash *StashCommands
+ Status *StatusCommands
+ Submodule *SubmoduleCommands
Sync *SyncCommands
- Flow *FlowCommands
- Custom *CustomCommands
+ Tag *TagCommands
+ WorkingTree *WorkingTreeCommands
+
+ Loaders Loaders
}
type Loaders struct {
- Commits *loaders.CommitLoader
Branches *loaders.BranchLoader
- Files *loaders.FileLoader
CommitFiles *loaders.CommitFileLoader
- Remotes *loaders.RemoteLoader
+ Commits *loaders.CommitLoader
+ Files *loaders.FileLoader
ReflogCommits *loaders.ReflogCommitLoader
+ Remotes *loaders.RemoteLoader
Stash *loaders.StashLoader
Tags *loaders.TagLoader
}
@@ -119,28 +119,28 @@ func NewGitCommandAux(
patchCommands := NewPatchCommands(cmn, cmd, rebaseCommands, commitCommands, configCommands, statusCommands, patchManager)
return &GitCommand{
- Submodule: submoduleCommands,
- Tag: tagCommands,
- WorkingTree: workingTreeCommands,
- File: fileCommands,
Branch: branchCommands,
Commit: commitCommands,
- Rebase: rebaseCommands,
Config: configCommands,
- Stash: stashCommands,
- Status: statusCommands,
+ Custom: customCommands,
+ File: fileCommands,
+ Flow: flowCommands,
Patch: patchCommands,
+ Rebase: rebaseCommands,
Remote: remoteCommands,
+ Stash: stashCommands,
+ Status: statusCommands,
+ Submodule: submoduleCommands,
Sync: syncCommands,
- Flow: flowCommands,
- Custom: customCommands,
+ Tag: tagCommands,
+ WorkingTree: workingTreeCommands,
Loaders: Loaders{
- Commits: loaders.NewCommitLoader(cmn, cmd, dotGitDir, branchCommands.CurrentBranchName, statusCommands.RebaseMode),
Branches: loaders.NewBranchLoader(cmn, branchCommands.GetRawBranches, branchCommands.CurrentBranchName),
- Files: fileLoader,
CommitFiles: loaders.NewCommitFileLoader(cmn, cmd),
- Remotes: loaders.NewRemoteLoader(cmn, cmd, repo.Remotes),
+ Commits: loaders.NewCommitLoader(cmn, cmd, dotGitDir, branchCommands.CurrentBranchName, statusCommands.RebaseMode),
+ Files: fileLoader,
ReflogCommits: loaders.NewReflogCommitLoader(cmn, cmd),
+ Remotes: loaders.NewRemoteLoader(cmn, cmd, repo.Remotes),
Stash: loaders.NewStashLoader(cmn, cmd),
Tags: loaders.NewTagLoader(cmn, cmd),
},