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
|
static GitLastChanges |
getInstance() |
static org.eclipse.jgit.lib.Repository |
repository(String path) |
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 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 changesCopyright © 2016. All rights reserved.