Documentation ¶
Index ¶
Constants ¶
View Source
const NULL_CODE = "%x00"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchLoader ¶
BranchLoader returns a list of Branch objects for the current repo
func NewBranchLoader ¶
func NewBranchLoader( cmn *common.Common, getRawBranches func() (string, error), getCurrentBranchName func() (string, string, error), config BranchLoaderConfigCommands, ) *BranchLoader
type BranchLoaderConfigCommands ¶ added in v0.32.2
type CommitFileLoader ¶
func NewCommitFileLoader ¶
func NewCommitFileLoader(common *common.Common, cmd oscommands.ICmdObjBuilder) *CommitFileLoader
func (*CommitFileLoader) GetFilesInDiff ¶
func (self *CommitFileLoader) GetFilesInDiff(from string, to string, reverse bool) ([]*models.CommitFile, error)
GetFilesInDiff get the specified commit files
type CommitLoader ¶
CommitLoader returns a list of Commit objects for the current repo
func NewCommitLoader ¶
func NewCommitLoader( cmn *common.Common, cmd oscommands.ICmdObjBuilder, dotGitDir string, getCurrentBranchName func() (string, string, error), getRebaseMode func() (enums.RebaseMode, error), ) *CommitLoader
making our dependencies explicit for the sake of easier testing
func (*CommitLoader) GetCommits ¶
func (self *CommitLoader) GetCommits(opts GetCommitsOptions) ([]*models.Commit, error)
GetCommits obtains the commits of the current branch
func (*CommitLoader) MergeRebasingCommits ¶
type FileLoader ¶
func NewFileLoader ¶
func NewFileLoader(cmn *common.Common, cmd oscommands.ICmdObjBuilder, config FileLoaderConfig) *FileLoader
func (*FileLoader) GetStatusFiles ¶
func (self *FileLoader) GetStatusFiles(opts GetStatusFileOptions) []*models.File
func (*FileLoader) GitStatus ¶
func (c *FileLoader) GitStatus(opts GitStatusOptions) ([]FileStatus, error)
type FileLoaderConfig ¶
type FileLoaderConfig interface {
GetShowUntrackedFiles() string
}
type FileStatus ¶
type GetCommitsOptions ¶
type GetStatusFileOptions ¶
type GetStatusFileOptions struct {
NoRenames bool
}
type GitStatusOptions ¶
GitStatus returns the file status of the repo
type ReflogCommitLoader ¶
func NewReflogCommitLoader ¶
func NewReflogCommitLoader(common *common.Common, cmd oscommands.ICmdObjBuilder) *ReflogCommitLoader
func (*ReflogCommitLoader) GetReflogCommits ¶
func (self *ReflogCommitLoader) GetReflogCommits(lastReflogCommit *models.Commit, filterPath string) ([]*models.Commit, bool, error)
GetReflogCommits only returns the new reflog commits since the given lastReflogCommit if none is passed (i.e. it's value is nil) then we get all the reflog commits
type RemoteLoader ¶
func NewRemoteLoader ¶
func NewRemoteLoader( common *common.Common, cmd oscommands.ICmdObjBuilder, getGoGitRemotes func() ([]*gogit.Remote, error), ) *RemoteLoader
func (*RemoteLoader) GetRemotes ¶
func (self *RemoteLoader) GetRemotes() ([]*models.Remote, error)
type StashLoader ¶
func NewStashLoader ¶
func NewStashLoader( common *common.Common, cmd oscommands.ICmdObjBuilder, ) *StashLoader
func (*StashLoader) GetStashEntries ¶
func (self *StashLoader) GetStashEntries(filterPath string) []*models.StashEntry
Click to show internal directories.
Click to hide internal directories.