Documentation
¶
Index ¶
- type LocalRepo
- func (l *LocalRepo) ClearRevision(ctx context.Context) error
- func (l *LocalRepo) CreateFile(name string, data []byte, perm os.FileMode) error
- func (l *LocalRepo) CurrentBranch(ctx context.Context) (string, error)
- func (l *LocalRepo) DiffWithRemote(ctx context.Context) (bool, error)
- func (l *LocalRepo) Fetch(ctx context.Context) error
- func (l *LocalRepo) GetHeadInfo(ctx context.Context) (string, string, error)
- func (l *LocalRepo) GetRevision(ctx context.Context) (string, error)
- func (l *LocalRepo) IsFirstCommit(ctx context.Context) (bool, error)
- func (l *LocalRepo) LoadConf() (*config.Config, error)
- func (l *LocalRepo) Push(ctx context.Context) error
- func (l *LocalRepo) Reset(ctx context.Context) error
- func (l *LocalRepo) SetRevision(ctx context.Context, revision string) error
- func (l *LocalRepo) SwitchAndMerge(ctx context.Context, branch string) error
- func (l *LocalRepo) SwitchDetachedBranch(ctx context.Context, revision string) error
- type LocalRepoIface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalRepo ¶
type LocalRepo struct {
// contains filtered or unexported fields
}
func AttachLocalRepo ¶
func InitLocalRepo ¶
func (*LocalRepo) CreateFile ¶
func (*LocalRepo) CurrentBranch ¶
func (*LocalRepo) DiffWithRemote ¶
func (*LocalRepo) GetHeadInfo ¶ added in v0.0.3
func (*LocalRepo) GetRevision ¶
func (*LocalRepo) IsFirstCommit ¶
func (*LocalRepo) SetRevision ¶
func (*LocalRepo) SwitchAndMerge ¶
type LocalRepoIface ¶
type LocalRepoIface interface {
LoadConf() (*config.Config, error)
CreateFile(name string, data []byte, perm os.FileMode) error
Fetch(ctx context.Context) error
SwitchAndMerge(ctx context.Context, branch string) error
SwitchDetachedBranch(ctx context.Context, revision string) error
Push(ctx context.Context) error
CurrentBranch(ctx context.Context) (string, error)
IsFirstCommit(ctx context.Context) (bool, error)
DiffWithRemote(ctx context.Context) (bool, error)
Reset(ctx context.Context) error
GetRevision(ctx context.Context) (string, error)
SetRevision(ctx context.Context, revision string) error
ClearRevision(ctx context.Context) error
GetHeadInfo(ctx context.Context) (string, string, error)
}
Click to show internal directories.
Click to hide internal directories.