public class GitInfoConsumer extends AbstractConsumer
git log
with a particular format and populates a InfoItem
.logger
Constructor and Description |
---|
GitInfoConsumer(Path path,
int revisionLength) |
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(String line) |
static org.codehaus.plexus.util.cli.Arg |
getFormatArgument()
The format argument to use with
git log |
InfoItem |
getInfoItem() |
parseDate, parseDate
public GitInfoConsumer(Path path, int revisionLength)
public void consumeLine(String line)
line
- the line which is supposed to have the format as specified by getFormatArgument()
.StreamConsumer.consumeLine(java.lang.String)
public InfoItem getInfoItem()
public static org.codehaus.plexus.util.cli.Arg getFormatArgument()
git log
git log
commandCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.