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 log
with a particular format and populates aInfoItem
.- Since:
- 1.5
- Author:
- Olivier Lamy
- See Also:
- Pretty Formats
-
-
Field Summary
-
Fields inherited from class org.apache.maven.scm.util.AbstractConsumer
logger
-
-
Constructor Summary
Constructors Constructor Description GitInfoConsumer(Path path, int revisionLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(String line)
static org.codehaus.plexus.util.cli.Arg
getFormatArgument()
The format argument to use withgit log
InfoItem
getInfoItem()
-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
parseDate, parseDate
-
-
-
-
Constructor Detail
-
GitInfoConsumer
public GitInfoConsumer(Path path, int revisionLength)
-
-
Method Detail
-
consumeLine
public void consumeLine(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 log
command - See Also:
- Pretty Formats
-
-