Class CommitWithMergeSettings

java.lang.Object
com._1c.g5.v8.dt.compare.git.merge.CommitWithMergeSettings

public class CommitWithMergeSettings extends Object
Class for keeping commit with its merge settings file name together.
  • 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 be null
    • 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 be null
      mergeSettingsFileName - merge settings file name, can be null
  • Method Details

    • getCommit

      public org.eclipse.jgit.revwalk.RevCommit getCommit()
      Gets commit.
      Returns:
      the commit, never null
    • getName

      public String getName()
      Gets the name of the commit.
      Returns:
      the name of the commit, never null
    • getFullMessage

      public String 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

      public String getMergeSettingsFileName()
      Gets merge settings file name.
      Returns:
      the merge settings file name, may be null
    • setMergeSettingsFileName

      public void setMergeSettingsFileName(String mergeSettingsFileName)
      Sets merge settings file name.
      Parameters:
      mergeSettingsFileName - file name to set, can be null