Class Version
- java.lang.Object
-
- org.eclipse.lemminx.utils.platform.Version
-
public class Version extends Object
LemMinX version information The information is read from git
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAIN_BRANCH
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBranch()Returns the git branch.StringgetCommitMessage()Returns the first line of the git commit message.StringgetShortCommitId()Returns the git short commit id.StringgetVersionNumber()Returns the version number of LemMinX.
-
-
-
Field Detail
-
MAIN_BRANCH
public static final String MAIN_BRANCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersionNumber
public String getVersionNumber()
Returns the version number of LemMinX.- Returns:
- the version number of LemMinX
-
getShortCommitId
public String getShortCommitId()
Returns the git short commit id. eg. 4f2ed3d- Returns:
- the git short commit id
-
getCommitMessage
public String getCommitMessage()
Returns the first line of the git commit message.- Returns:
- the first line of the git commit message
-
getBranch
public String getBranch()
Returns the git branch.- Returns:
- the git branch
-
-