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
- Author:
- Olivier Lamy
- See Also:
- Pretty Formats
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.util.AbstractConsumerlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description GitInfoConsumer(Path path, int revisionLength)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeLine(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.AbstractConsumerparseDate, parseDate
 
- 
 
- 
- 
- 
Constructor Detail- 
GitInfoConsumerpublic GitInfoConsumer(Path path, int revisionLength) 
 
- 
 - 
Method Detail- 
consumeLinepublic void consumeLine(String line) - Parameters:
- line- the line which is supposed to have the format as specified by- getFormatArgument()
- See Also:
- StreamConsumer.consumeLine(java.lang.String)
 
 - 
getInfoItempublic InfoItem getInfoItem() 
 - 
getFormatArgumentpublic 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
 
 
- 
 
-