// InitializeVersions creates an initial versions.json enclosure in the Repository's .changes directory. The VersionEnclosure
// created by InitializeVersions will include all modules that have a tagged version in git and their corresponding versions.
InitializeVersions creates an initial versions.json enclosure in the Repository's .changes directory. The VersionEnclosure
created by InitializeVersions will include all modules that have a tagged version in git and their corresponding versions.
// InitializeVersions creates an initial versions . json enclosure in the Repository ' s . changes directory . The VersionEnclosure // created by InitializeVersions will include all modules that have a tagged version in git and their corresponding versions .
func (r *Repository) InitializeVersions() error {
	enc, _, err := r.DiscoverVersions(TaggedVersionSelector)
	if err != nil {
		return fmt.Errorf("failed to initialize versions: %v", err)
	}
	return r.Metadata.SaveEnclosure(enc)
}
func ( r * Repository ) InitializeVersions ( ) error { enc , _ , err := r . DiscoverVersions ( TaggedVersionSelector ) if err != nil { return fmt . Errorf ( " " , err ) } return r . Metadata . SaveEnclosure ( enc ) }
InitializeVersions creates an initial versions.json enclosure in the Repository's .changes directory.
InitializeVersions creates an initial versions . json enclosure in the Repository ' s . changes directory .