Documentation
¶
Overview ¶
Like git module. But wrapper to one place
Index ¶
- Variables
- type Log
- type Repository
- func (r *Repository) CreateTag(name types.TagName, msg string)
- func (r *Repository) ForeachLog(From plumbing.Hash, callback func(log Log) ShouldWeStopIteration)
- func (r *Repository) ForeachTag(callback func(tag Tag) ShouldWeStopIteration)
- func (r *Repository) GetLatestCommitHash() plumbing.Hash
- func (r *Repository) GetLogsFromTag(tagName types.TagName, callback func(log Log) ShouldWeStopIteration)
- func (r *Repository) HookEnabled(enabled bool)
- func (r *Repository) PushTag(name types.TagName)
- func (r *Repository) TestCommit(msg string) plumbing.Hash
- func (r *Repository) TestCreateTag(name string, hash plumbing.Hash)
- type ShouldWeStopIteration
- type SshPath
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var HEAD_Hash plumbing.Hash
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepoInWorkDir ¶
func NewRepoInWorkDir(sshPath SshPath) *Repository
func NewRepoTestInMemory ¶
func NewRepoTestInMemory() *Repository
func (*Repository) ForeachLog ¶
func (r *Repository) ForeachLog(From plumbing.Hash, callback func(log Log) ShouldWeStopIteration)
func (*Repository) ForeachTag ¶
func (r *Repository) ForeachTag(callback func(tag Tag) ShouldWeStopIteration)
func (*Repository) GetLatestCommitHash ¶
func (r *Repository) GetLatestCommitHash() plumbing.Hash
func (*Repository) GetLogsFromTag ¶
func (r *Repository) GetLogsFromTag(tagName types.TagName, callback func(log Log) ShouldWeStopIteration)
func (*Repository) HookEnabled ¶
func (r *Repository) HookEnabled(enabled bool)
func (*Repository) PushTag ¶
func (r *Repository) PushTag(name types.TagName)
func (*Repository) TestCommit ¶
func (r *Repository) TestCommit(msg string) plumbing.Hash
func (*Repository) TestCreateTag ¶
func (r *Repository) TestCreateTag(name string, hash plumbing.Hash)
type ShouldWeStopIteration ¶
type ShouldWeStopIteration bool
Click to show internal directories.
Click to hide internal directories.