Class SquashMessageFormatter


  • public class SquashMessageFormatter
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      SquashMessageFormatter()
      Create a new squash message formatter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.List<RevCommit> squashedCommits, Ref target)
      Construct the squashed commit message.
      private java.lang.String toString​(PersonIdent author)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SquashMessageFormatter

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

      • format

        public java.lang.String format​(java.util.List<RevCommit> squashedCommits,
                                       Ref target)
        Construct the squashed commit message.
        Parameters:
        squashedCommits - the squashed commits
        target - the target branch
        Returns:
        squashed commit message
      • toString

        private java.lang.String toString​(PersonIdent author)