Package org.ossreviewtoolkit.model
Class VcsInfoCurationData
-
- All Implemented Interfaces:
public final class VcsInfoCurationDataBundles curation data for Version Control System information.
-
-
Constructor Summary
Constructors Constructor Description VcsInfoCurationData(VcsType type, String url, String revision, String path)
-
Method Summary
Modifier and Type Method Description final VcsTypegetType()The type of the VCS, for example Git, GitRepo, Mercurial, etc. final StringgetUrl()The URL to the VCS repository. final StringgetRevision()The VCS-specific revision (tag, branch, SHA1) that the version of the package maps to. final StringgetPath()The path inside the VCS to take into account, if any. final VcsInfoCurationDatamerge(VcsInfoCurationData other)Merge with other curation data. -
-
Method Detail
-
getRevision
final String getRevision()
The VCS-specific revision (tag, branch, SHA1) that the version of the package maps to.
-
getPath
final String getPath()
The path inside the VCS to take into account, if any. The actual meaning depends on the VCS type. For example, for Git only this subdirectory of the repository should be cloned, or for Git Repo it is interpreted as the path to the manifest file.
-
merge
final VcsInfoCurationData merge(VcsInfoCurationData other)
Merge with other curation data. If in question, data in this instance has precedence over data in the other instance.
-
-
-
-