Package com.google.gerrit.server.git
Class DefaultChangeReportFormatter
- java.lang.Object
-
- com.google.gerrit.server.git.DefaultChangeReportFormatter
-
- All Implemented Interfaces:
ChangeReportFormatter
public class DefaultChangeReportFormatter extends Object implements ChangeReportFormatter
Print a change description for use in git command-line progress.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.server.git.ChangeReportFormatter
ChangeReportFormatter.Input
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicItem<UrlFormatter>
urlFormatter
-
Constructor Summary
Constructors Constructor Description DefaultChangeReportFormatter(DynamicItem<UrlFormatter> urlFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
changeClosed(ChangeReportFormatter.Input input)
String
changeUpdated(ChangeReportFormatter.Input input)
protected String
cropSubject(String subject)
protected String
formatChangeUrl(ChangeReportFormatter.Input input)
String
newChange(ChangeReportFormatter.Input input)
-
-
-
Field Detail
-
urlFormatter
protected final DynamicItem<UrlFormatter> urlFormatter
-
-
Constructor Detail
-
DefaultChangeReportFormatter
@Inject public DefaultChangeReportFormatter(DynamicItem<UrlFormatter> urlFormatter)
-
-
Method Detail
-
newChange
public String newChange(ChangeReportFormatter.Input input)
- Specified by:
newChange
in interfaceChangeReportFormatter
-
changeUpdated
public String changeUpdated(ChangeReportFormatter.Input input)
- Specified by:
changeUpdated
in interfaceChangeReportFormatter
-
changeClosed
public String changeClosed(ChangeReportFormatter.Input input)
- Specified by:
changeClosed
in interfaceChangeReportFormatter
-
formatChangeUrl
protected String formatChangeUrl(ChangeReportFormatter.Input input)
-
-