Class GitCommitAdapter
- java.lang.Object
-
- net.videki.semver.cc.release.common.GitCommitAdapter
-
- All Implemented Interfaces:
CommitAdapter<org.eclipse.jgit.revwalk.RevCommit>
public class GitCommitAdapter extends Object implements CommitAdapter<org.eclipse.jgit.revwalk.RevCommit>
Git commit adapter.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.revwalk.RevCommitgetCommit()Returns the commit itself.StringgetShortMessage()Returns the commit message.
-
-
-
Method Detail
-
getShortMessage
public String getShortMessage()
Returns the commit message.- Specified by:
getShortMessagein interfaceCommitAdapter<org.eclipse.jgit.revwalk.RevCommit>- Returns:
- The commit message.
-
getCommit
public org.eclipse.jgit.revwalk.RevCommit getCommit()
Returns the commit itself.- Specified by:
getCommitin interfaceCommitAdapter<org.eclipse.jgit.revwalk.RevCommit>- Returns:
- The SCM commit itself.
-
-