Class GitDelta

java.lang.Object
io.jenkins.plugins.forensics.delta.Delta
io.jenkins.plugins.forensics.git.delta.GitDelta
All Implemented Interfaces:
Serializable

public class GitDelta extends io.jenkins.plugins.forensics.delta.Delta
A Git specific extension of Delta.
Author:
Florian Orendi
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GitDelta(String currentCommit, String referenceCommit, Map<String,io.jenkins.plugins.forensics.delta.FileChanges> fileChanges, String diffFile)
    Constructor for a delta instance which wraps code changes between the two passed commits.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    int
     

    Methods inherited from class io.jenkins.plugins.forensics.delta.Delta

    addFileChanges, getCurrentCommit, getFileChangesById, getFileChangesMap, getReferenceCommit

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GitDelta

      public GitDelta(String currentCommit, String referenceCommit, Map<String,io.jenkins.plugins.forensics.delta.FileChanges> fileChanges, String diffFile)
      Constructor for a delta instance which wraps code changes between the two passed commits.
      Parameters:
      currentCommit - the currently processed commit
      referenceCommit - the reference commit
      fileChanges - the map which contains the changes for modified files, mapped by the file ID.
      diffFile - the Diff-File which has been created by Git and wraps up all made changes between two commits.
  • Method Details

    • getDiffFile

      public String getDiffFile()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class io.jenkins.plugins.forensics.delta.Delta
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class io.jenkins.plugins.forensics.delta.Delta