Documentation ¶
Index ¶
- func CloneORPullRepo(url string, dst string) error
- func CloneRepo(url string, dst string) (err error)
- func CloneRepoBranch(branch string, url string, dst string) error
- func GetTags(repoPath string, limit int) ([]string, error)
- type Repository
- func (repo *Repository) Export(startVer, endVer string, filename string) error
- func (repo *Repository) GetChangeFiles(startVer, endVer string, onlyFile bool) ([]string, error)
- func (repo *Repository) GetChangeLogs(startVer, endVer string) ([]string, error)
- func (repo *Repository) GetDiffFileCount(startVer, endVer string) (int, error)
- func (repo *Repository) GetTags() ([]string, error)
- func (repo *Repository) Pull() error
- type SortTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
Path string
}
Repository ...
func (*Repository) Export ¶
func (repo *Repository) Export(startVer, endVer string, filename string) error
导出版本到tar包
func (*Repository) GetChangeFiles ¶
func (repo *Repository) GetChangeFiles(startVer, endVer string, onlyFile bool) ([]string, error)
获取两个版本之间的差异文件列表
func (*Repository) GetChangeLogs ¶
func (repo *Repository) GetChangeLogs(startVer, endVer string) ([]string, error)
获取两个版本之间的修改日志
func (*Repository) GetDiffFileCount ¶
func (repo *Repository) GetDiffFileCount(startVer, endVer string) (int, error)
获取两个版本间的新增或修改的文件数量
Click to show internal directories.
Click to hide internal directories.