Package org.eclipse.jgit.merge
Class SquashMessageFormatter
java.lang.Object
org.eclipse.jgit.merge.SquashMessageFormatter
Formatter 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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dateFormatter
-
-
Constructor Details
-
SquashMessageFormatter
public SquashMessageFormatter()Create a new squash message formatter.
-
-
Method Details
-
format
Construct the squashed commit message.- Parameters:
squashedCommits
- the squashed commitstarget
- the target branch- Returns:
- squashed commit message
-
toString
-