public final class GitUtil extends Object
| Constructor and Description |
|---|
GitUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
branch(org.eclipse.jgit.lib.Repository repository) |
static GitDescription |
describe(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId revObjectId,
Pattern tagPattern) |
static GitDescription |
describe(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId revObjectId,
Pattern tagPattern,
Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> reverseTagRefMap) |
static boolean |
isShallowRepository(org.eclipse.jgit.lib.Repository repository) |
static Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> |
reverseTagRefMap(org.eclipse.jgit.lib.Repository repository) |
static ZonedDateTime |
revTimestamp(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId rev) |
static org.eclipse.jgit.api.Status |
status(org.eclipse.jgit.lib.Repository repository) |
static List<org.eclipse.jgit.lib.Ref> |
tags(org.eclipse.jgit.lib.RefDatabase refDatabase) |
static List<org.eclipse.jgit.lib.Ref> |
tags(org.eclipse.jgit.lib.Repository repository) |
static List<String> |
tagsPointAt(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId revObjectId) |
static List<String> |
tagsPointAt(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId revObjectId,
Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> reverseTagRefMap) |
public static String NO_COMMIT
public static org.eclipse.jgit.api.Status status(org.eclipse.jgit.lib.Repository repository)
public static String branch(org.eclipse.jgit.lib.Repository repository) throws IOException
IOExceptionpublic static List<String> tagsPointAt(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId revObjectId) throws IOException
IOExceptionpublic static List<String> tagsPointAt(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId revObjectId, Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> reverseTagRefMap)
public static GitDescription describe(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId revObjectId, Pattern tagPattern) throws IOException
IOExceptionpublic static GitDescription describe(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId revObjectId, Pattern tagPattern, Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> reverseTagRefMap) throws IOException
IOExceptionpublic static boolean isShallowRepository(org.eclipse.jgit.lib.Repository repository)
public static List<org.eclipse.jgit.lib.Ref> tags(org.eclipse.jgit.lib.Repository repository) throws IOException
IOExceptionpublic static List<org.eclipse.jgit.lib.Ref> tags(org.eclipse.jgit.lib.RefDatabase refDatabase) throws IOException
IOExceptionpublic static Map<org.eclipse.jgit.lib.ObjectId,List<org.eclipse.jgit.lib.Ref>> reverseTagRefMap(org.eclipse.jgit.lib.Repository repository) throws IOException
IOExceptionpublic static ZonedDateTime revTimestamp(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.lib.ObjectId rev) throws IOException
IOExceptionCopyright © 2021. All rights reserved.