public class GitLastChanges extends Object implements VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
Modifier and Type | Method and Description |
---|---|
LastChanges |
changesOf(org.eclipse.jgit.lib.Repository repository)
Creates last changes from repository last two revisions
|
LastChanges |
changesOf(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId currentRevision,
org.eclipse.jgit.lib.ObjectId previousRevision)
Creates last changes by "diffing" two revisions
|
CommitInfo |
commitInfo(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId commitId) |
List<CommitInfo> |
getCommitsBetweenRevisions(org.eclipse.jgit.lib.Repository gitRepository,
org.eclipse.jgit.lib.ObjectId currentRevision,
org.eclipse.jgit.lib.ObjectId previousRevision) |
static GitLastChanges |
getInstance() |
org.eclipse.jgit.lib.ObjectId |
getLastTagRevision(org.eclipse.jgit.lib.Repository repository) |
static org.eclipse.jgit.lib.Repository |
repository(String path) |
org.eclipse.jgit.lib.ObjectId |
resolveCurrentRevision(org.eclipse.jgit.lib.Repository repository) |
public static GitLastChanges getInstance()
public static org.eclipse.jgit.lib.Repository repository(String path)
path
- local git repository pathpublic LastChanges changesOf(org.eclipse.jgit.lib.Repository repository)
changesOf
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
repository
- git repository to get last changespublic org.eclipse.jgit.lib.ObjectId resolveCurrentRevision(org.eclipse.jgit.lib.Repository repository)
resolveCurrentRevision
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
public LastChanges changesOf(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId currentRevision, org.eclipse.jgit.lib.ObjectId previousRevision)
changesOf
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
repository
- git repository to get last changespublic org.eclipse.jgit.lib.ObjectId getLastTagRevision(org.eclipse.jgit.lib.Repository repository)
getLastTagRevision
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
public CommitInfo commitInfo(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId commitId)
commitInfo
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
public List<CommitInfo> getCommitsBetweenRevisions(org.eclipse.jgit.lib.Repository gitRepository, org.eclipse.jgit.lib.ObjectId currentRevision, org.eclipse.jgit.lib.ObjectId previousRevision)
getCommitsBetweenRevisions
in interface VCSChanges<org.eclipse.jgit.lib.Repository,org.eclipse.jgit.lib.ObjectId>
Copyright © 2016–2019. All rights reserved.