Class JGitInfoCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.provider.git.jgit.command.info.JGitInfoCommand
- All Implemented Interfaces:
Command, GitCommand
- Since:
- 1.9.5
-
Field Summary
Fields inherited from class AbstractCommand
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ScmResultexecuteCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected InfoItemgetInfoItem(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId headObjectId, File file) protected InfoItemgetInfoItem(org.eclipse.jgit.revwalk.RevCommit fileCommit, File file) private org.eclipse.jgit.revwalk.RevCommitgetMostRecentCommitForPath(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId headObjectId, String path) Methods inherited from class AbstractCommand
execute
-
Constructor Details
-
JGitInfoCommand
public JGitInfoCommand()
-
-
Method Details
-
executeCommand
protected ScmResult executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
executeCommandin classAbstractCommand- Throws:
ScmException
-
getInfoItem
protected InfoItem getInfoItem(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId headObjectId, File file) throws IOException - Throws:
IOException
-
getInfoItem
-
getMostRecentCommitForPath
private org.eclipse.jgit.revwalk.RevCommit getMostRecentCommitForPath(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId headObjectId, String path) throws IOException - Throws:
IOException
-