Class MergeConfig


  • public class MergeConfig
    extends Object
    Holds configuration for merging into a given branch
    Since:
    3.3
    • Method Detail

      • getConfigForCurrentBranch

        public static MergeConfig getConfigForCurrentBranch​(Repository repo)
        Parameters:
        repo -
        Returns:
        merge configuration for the current branch of the repository
      • isSquash

        public boolean isSquash()
        Returns:
        true if merges into this branch are configured to be squash merges, false otherwise
      • isCommit

        public boolean isCommit()
        Returns:
        false if --no-commit is configured for this branch, true otherwise (event if --squash is configured)