Package org.eclipse.jgit.merge
Class SquashMessageFormatter
- java.lang.Object
-
- org.eclipse.jgit.merge.SquashMessageFormatter
-
public class SquashMessageFormatter extends java.lang.ObjectFormatter for constructing the commit message for a squashed commit.The format should be the same as C Git does it, for compatibility.
-
-
Field Summary
Fields Modifier and Type Field Description private GitDateFormatterdateFormatter
-
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.Stringformat(java.util.List<RevCommit> squashedCommits, Ref target)Construct the squashed commit message.private java.lang.StringtoString(PersonIdent author)
-
-
-
Field Detail
-
dateFormatter
private GitDateFormatter dateFormatter
-
-
Method Detail
-
format
public java.lang.String format(java.util.List<RevCommit> squashedCommits, Ref target)
Construct the squashed commit message.- Parameters:
squashedCommits- the squashed commitstarget- the target branch- Returns:
- squashed commit message
-
toString
private java.lang.String toString(PersonIdent author)
-
-