public class GitSituation extends Object
| Constructor and Description |
|---|
GitSituation(org.eclipse.jgit.lib.Repository repository) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBranch() |
Pattern |
getDescribeTagPattern() |
GitDescription |
getDescription() |
String |
getRev() |
File |
getRootDirectory() |
List<String> |
getTags() |
ZonedDateTime |
getTimestamp() |
boolean |
isClean() |
boolean |
isDetached() |
void |
setBranch(String branch) |
void |
setDescribeTagPattern(Pattern describeTagPattern) |
void |
setTags(List<String> tags) |
public GitSituation(org.eclipse.jgit.lib.Repository repository)
throws IOException
IOExceptionpublic File getRootDirectory()
public String getRev()
public ZonedDateTime getTimestamp()
public String getBranch()
public void setBranch(String branch)
public boolean isDetached()
public boolean isClean()
public void setDescribeTagPattern(Pattern describeTagPattern)
public Pattern getDescribeTagPattern()
public GitDescription getDescription()
Copyright © 2021. All rights reserved.