Class SquashMessageFormatter

  • public class SquashMessageFormatter
    extends Object
    Formatter for constructing the commit message for a squashed commit.

    The format should be the same as C Git does it, for compatibility.

    • Constructor Detail

      • SquashMessageFormatter

        public SquashMessageFormatter()
        Create a new squash message formatter.
    • Method Detail

      • format

        public String format​(List<RevCommit> squashedCommits,
                             Ref target)
        Construct the squashed commit message.
        squashedCommits - the squashed commits
        target - the target branch
        squashed commit message