Class DiffConfig

java.lang.Object
org.eclipse.jgit.diff.DiffConfig

public class DiffConfig extends Object
Keeps track of diff related configuration options.
  • Field Details

  • Constructor Details

    • DiffConfig

      private DiffConfig(Config rc)
  • Method Details

    • isNoPrefix

      public boolean isNoPrefix()
      If prefix should be suppressed
      Returns:
      true if the prefix "a/" and "b/" should be suppressed
    • isRenameDetectionEnabled

      public boolean isRenameDetectionEnabled()
      If rename detection is enabled
      Returns:
      true if rename detection is enabled by default
    • getRenameDetectionType

      public DiffConfig.RenameDetectionType getRenameDetectionType()
      Get the rename detection type
      Returns:
      type of rename detection to perform
    • getRenameLimit

      public int getRenameLimit()
      Get the rename limit
      Returns:
      limit on number of paths to perform inexact rename detection
    • parseRenameDetectionType

      private static DiffConfig.RenameDetectionType parseRenameDetectionType(String renameString)