Package me.qoomon.gitversioning.commons
Class GitUtil
java.lang.Object
me.qoomon.gitversioning.commons.GitUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbranch(org.eclipse.jgit.lib.Repository repository) static GitDescriptiondescribe(org.eclipse.jgit.lib.ObjectId revObjectId, Pattern tagPattern, org.eclipse.jgit.lib.Repository repository) static booleanisShallowRepository(org.eclipse.jgit.lib.Repository repository) reverseTagRefMap(org.eclipse.jgit.lib.Repository repository) static ZonedDateTimerevTimestamp(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId rev) static org.eclipse.jgit.api.Statusstatus(org.eclipse.jgit.lib.Repository repository) static List<org.eclipse.jgit.lib.Ref>tags(org.eclipse.jgit.lib.Repository repository) tagsPointAt(org.eclipse.jgit.lib.ObjectId revObjectId, org.eclipse.jgit.lib.Repository repository)
-
Field Details
-
NO_COMMIT
-
-
Constructor Details
-
GitUtil
public GitUtil()
-
-
Method Details
-
status
public static org.eclipse.jgit.api.Status status(org.eclipse.jgit.lib.Repository repository) throws org.eclipse.jgit.api.errors.GitAPIException - Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
branch
- Throws:
IOException
-
tagsPointAt
public static List<String> tagsPointAt(org.eclipse.jgit.lib.ObjectId revObjectId, org.eclipse.jgit.lib.Repository repository) throws IOException - Throws:
IOException
-
describe
public static GitDescription describe(org.eclipse.jgit.lib.ObjectId revObjectId, Pattern tagPattern, org.eclipse.jgit.lib.Repository repository) throws IOException - Throws:
IOException
-
isShallowRepository
public static boolean isShallowRepository(org.eclipse.jgit.lib.Repository repository) -
tags
public static List<org.eclipse.jgit.lib.Ref> tags(org.eclipse.jgit.lib.Repository repository) throws IOException - Throws:
IOException
-
reverseTagRefMap
public static Map<org.eclipse.jgit.lib.ObjectId,List<String>> reverseTagRefMap(org.eclipse.jgit.lib.Repository repository) throws IOException - Throws:
IOException
-
revTimestamp
public static ZonedDateTime revTimestamp(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId rev) throws IOException - Throws:
IOException
-