2024-12-03 00:35:50 -06:00
|
|
|
package gitpb
|
|
|
|
|
|
|
|
func (repo *Repo) SetReadOnly(b bool) {
|
|
|
|
repo.ReadOnly = b
|
|
|
|
}
|
|
|
|
|
|
|
|
func (repo *Repo) SetTargetVersion(target string) {
|
|
|
|
repo.TargetVersion = target
|
|
|
|
}
|
|
|
|
|
|
|
|
func (repo *Repo) SetMasterBranchName(s string) {
|
|
|
|
repo.MasterBranchName = s
|
|
|
|
}
|
2024-12-17 06:37:14 -06:00
|
|
|
|
|
|
|
func (repo *Repo) GetGoPath() string {
|
|
|
|
if repo.GoInfo == nil {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
return repo.GoInfo.GoPath
|
|
|
|
}
|
2024-12-17 20:48:23 -06:00
|
|
|
|
|
|
|
func (repo *Repo) GetGoPrimitive() bool {
|
|
|
|
if repo.GoInfo == nil {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
return repo.GoInfo.GoPrimitive
|
|
|
|
}
|
|
|
|
|
|
|
|
func (repo *Repo) SetGoPrimitive(b bool) {
|
|
|
|
if repo.GoInfo == nil {
|
|
|
|
repo.GoInfo = new(GoInfo)
|
|
|
|
}
|
|
|
|
repo.GoInfo.GoPrimitive = b
|
|
|
|
}
|