Class CommitWithMergeSettings
java.lang.Object
com._1c.g5.v8.dt.compare.git.merge.CommitWithMergeSettings
Class for keeping commit with its merge settings file name together.
-
Constructor Summary
ConstructorsConstructorDescriptionCommitWithMergeSettings
(org.eclipse.jgit.revwalk.RevCommit commit) Creates instance with commit and without name of merge settings file.CommitWithMergeSettings
(org.eclipse.jgit.revwalk.RevCommit commit, String mergeSettingsFileName) Creates instance with commit and given name of merge settings file. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.PersonIdent
Gets author idendity data.org.eclipse.jgit.revwalk.RevCommit
Gets commit.Gets the full message of the commit.Gets merge settings file name.getName()
Gets the name of the commit.void
setMergeSettingsFileName
(String mergeSettingsFileName) Sets merge settings file name.
-
Constructor Details
-
CommitWithMergeSettings
public CommitWithMergeSettings(org.eclipse.jgit.revwalk.RevCommit commit) Creates instance with commit and without name of merge settings file.- Parameters:
commit
- , cannot benull
-
CommitWithMergeSettings
public CommitWithMergeSettings(org.eclipse.jgit.revwalk.RevCommit commit, String mergeSettingsFileName) Creates instance with commit and given name of merge settings file.- Parameters:
commit
- commit to set settings for, cannot benull
mergeSettingsFileName
- merge settings file name, can benull
-
-
Method Details
-
getCommit
public org.eclipse.jgit.revwalk.RevCommit getCommit()Gets commit.- Returns:
- the commit, never
null
-
getName
Gets the name of the commit.- Returns:
- the name of the commit, never
null
-
getFullMessage
Gets the full message of the commit.- Returns:
- the full message of the commit, never
null
-
getAuthorIdent
public org.eclipse.jgit.lib.PersonIdent getAuthorIdent()Gets author idendity data.- Returns:
- the author idendity data, never
null
-
getMergeSettingsFileName
Gets merge settings file name.- Returns:
- the merge settings file name, may be
null
-
setMergeSettingsFileName
Sets merge settings file name.- Parameters:
mergeSettingsFileName
- file name to set, can benull
-