Class GitInfoConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.git.gitexe.command.info.GitInfoConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
Parses output of
git log with a particular format and populates a InfoItem.- Since:
- 1.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class AbstractConsumer
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeLine(String line) static org.codehaus.plexus.util.cli.ArgThe format argument to use withgit logMethods inherited from class AbstractConsumer
parseDate, parseDate
-
Field Details
-
infoItem
-
revisionLength
private final int revisionLength
-
-
Constructor Details
-
GitInfoConsumer
-
-
Method Details
-
consumeLine
- Parameters:
line- the line which is supposed to have the format as specified bygetFormatArgument()- See Also:
-
getInfoItem
-
getFormatArgument
public static org.codehaus.plexus.util.cli.Arg getFormatArgument()The format argument to use withgit log- Returns:
- the format argument to use
git logcommand - See Also:
-