Documentation
¶
Index ¶
- type Repository
- func (repo *Repository) Archive(commit, spath string) (string, error)
- func (repo *Repository) Clone() (string, error)
- func (repo *Repository) DelTags(commit string) error
- func (repo *Repository) Diff(commita, commitb string) (string, error)
- func (repo *Repository) GetBranches() ([]string, error)
- func (repo *Repository) GetName() string
- func (repo *Repository) GetTags() ([]string, error)
- func (repo *Repository) PullTags() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository represents a Git repository.
func NewRepository ¶
func NewRepository(basePath, remotePath string) *Repository
func (*Repository) Archive ¶
func (repo *Repository) Archive(commit, spath string) (string, error)
archive git archive --format=tar.gz --prefix=wolffy-0.1.3/ 0.1.3 --output /tmp/wolffy-0.1.3.tag.gz
func (*Repository) Diff ¶
func (repo *Repository) Diff(commita, commitb string) (string, error)
diff
func (*Repository) GetBranches ¶
func (repo *Repository) GetBranches() ([]string, error)
list all branchs
Click to show internal directories.
Click to hide internal directories.