Package org.ossreviewtoolkit.model
Class VcsInfo
-
- All Implemented Interfaces:
public final class VcsInfoBundles general Version Control System information.
-
-
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. final VcsInfomerge(VcsInfo other)Merge two sources of VCS information by mixing and matching fields to get as complete information as possible. final VcsInfonormalize()Return this VcsInfo in normalized form by applying normalizeVcsUrl to the url. final VcsInfoCurationDatatoCuration()Return a VcsInfoCurationData with the properties from this VcsInfo. -
-
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 the VCS supports checking out only a subdirectory, only this path is checked out.
-
merge
final VcsInfo merge(VcsInfo other)
Merge two sources of VCS information by mixing and matching fields to get as complete information as possible. If in question, information in this instance has precedence over information in the other instance.
-
toCuration
final VcsInfoCurationData toCuration()
Return a VcsInfoCurationData with the properties from this VcsInfo.
-
-
-
-