Utility class to perform operations against JGit objects.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Commit |
convertCommit(org.eclipse.jgit.revwalk.RevCommit rev)Converts a JGit commit to a Grgit commit. |
|
static Remote |
convertRemote(org.eclipse.jgit.transport.RemoteConfig rc)Converts a JGit remote to a Grgit remote. |
|
static Status |
convertStatus(org.eclipse.jgit.api.Status jgitStatus)Converts a JGit status to a Grgit status. |
|
static boolean |
isAncestorOf(Repository repo, Commit base, Commit tip)Checks if base is an ancestor of tip. |
|
static Branch |
resolveBranch(Repository repo, java.lang.String name)Resolves a Grgit branch from a name. |
|
static Branch |
resolveBranch(Repository repo, org.eclipse.jgit.lib.Ref ref)Resolves a Grgit branch from a JGit ref. |
|
static Commit |
resolveCommit(Repository repo, java.lang.String revstr)Resolves a Grgit Commit using the given revision string. |
|
static Commit |
resolveCommit(Repository repo, org.eclipse.jgit.lib.ObjectId id)Resolves a Grgit Commit using the given object. |
|
static org.eclipse.jgit.lib.ObjectId |
resolveObject(Repository repo, java.lang.String revstr)Resolves a JGit ObjectId using the given revision string. |
|
static java.util.Set<org.eclipse.jgit.lib.ObjectId> |
resolveParents(Repository repo, org.eclipse.jgit.lib.ObjectId id)Resolves the parents of an object. |
|
static org.eclipse.jgit.revwalk.RevObject |
resolveRevObject(Repository repo, java.lang.String revstr, boolean peel = false)Resolves a JGit RevObject using the given revision string. |
|
static Tag |
resolveTag(Repository repo, java.lang.String name)Resolves a Grgit tag from a name. |
|
static Tag |
resolveTag(Repository repo, org.eclipse.jgit.lib.Ref ref)Resolves a Grgit Tag from a JGit ref. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Converts a JGit commit to a Grgit commit.
rev - the JGit commit to convertConverts a JGit remote to a Grgit remote.
rc - the remote config to convertConverts a JGit status to a Grgit status.
jgitStatus - the status to convert Checks if base is an ancestor of tip.
repo - the repository to look inbase - the version that might be an ancestortip - the tip versionResolves a Grgit branch from a name.
repo - the Grgit repository to resolve fromname - the name of the branch to resolveResolves a Grgit branch from a JGit ref.
repo - the Grgit repository to resolve fromref - the JGit ref to resolvenull if the ref is
null Resolves a Grgit Commit using the given revision string.
repo - the Grgit repository to resolve the commit fromrevstr - the revision string to use Resolves a Grgit Commit using the given object.
repo - the Grgit repository to resolve the commit fromid - the object id of the commit to resolve Resolves a JGit ObjectId using the given revision string.
repo - the Grgit repository to resolve the object fromrevstr - the revision string to useResolves the parents of an object.
repo - the Grgit repository to resolve the parents fromid - the object to get the parents of Resolves a JGit RevObject using the given revision string.
repo - the Grgit repository to resolve the object fromrevstr - the revision string to usepeel - whether or not to peel the resolved objectResolves a Grgit tag from a name.
repo - the Grgit repository to resolve fromname - the name of the tag to resolveResolves a Grgit Tag from a JGit ref.
repo - the Grgit repository to resolve fromref - the JGit ref to resolve