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
public class GitInfoConsumer extends AbstractConsumer
Parses output ofgit logwith a particular format and populates aInfoItem.- Since:
- 1.5
- See Also:
- Pretty Formats
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classGitInfoConsumer.LineParts
-
Field Summary
Fields Modifier and Type Field Description private InfoIteminfoItemprivate intrevisionLength-
Fields inherited from class org.apache.maven.scm.util.AbstractConsumer
logger
-
-
Constructor Summary
Constructors Constructor Description GitInfoConsumer(java.nio.file.Path path, int revisionLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeLine(java.lang.String line)static org.codehaus.plexus.util.cli.ArggetFormatArgument()The format argument to use withgit logInfoItemgetInfoItem()-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
parseDate, parseDate
-
-
-
-
Field Detail
-
infoItem
private final InfoItem infoItem
-
revisionLength
private final int revisionLength
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
- Parameters:
line- the line which is supposed to have the format as specified bygetFormatArgument()- See Also:
StreamConsumer.consumeLine(java.lang.String)
-
getInfoItem
public InfoItem 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:
- Pretty Formats
-
-