public class GitUtil
extends Object
Constructor and Description |
---|
GitUtil() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getCurrentBranchCommitId(String gitWorkingBranchName) |
static String |
getCurrentBranchFileContent(String gitWorkingBranchName,
String fileName) |
static List<String> |
getCurrentBranchFileNames(String baseDirName,
String gitWorkingBranchName) |
static List<String> |
getCurrentBranchFileNames(String baseDirName,
String gitWorkingBranchName,
boolean includeDeletedFileNames) |
protected static List<String> |
getDeletedFileNames(String baseDirName,
String commitId) |
protected static Set<String> |
getDirNames(String baseDirName,
Iterable<String> fileNames,
String markerFileName) |
protected static String |
getFileContent(String committish,
String fileName) |
protected static String |
getFileName(String fileName,
int gitLevel) |
protected static List<String> |
getFileNames(String baseDirName,
String commitId) |
protected static com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader |
getGitCommandReader(String gitCommand) |
protected static int |
getGitLevel(String baseDirName) |
protected static String |
getLatestAuthorCommitId() |
static String |
getLatestAuthorFileContent(String fileName) |
static List<String> |
getLatestAuthorFileNames(String baseDirName) |
static List<String> |
getLatestAuthorFileNames(String baseDirName,
boolean includeDeletedFileNames) |
static String |
getLocalChangesFileContent(String fileName) |
static List<String> |
getLocalChangesFileNames(String baseDirName) |
static List<String> |
getLocalChangesFileNames(String baseDirName,
boolean includeDeletedFileNames) |
protected static List<String> |
getLocalChangesFileNames(String baseDirName,
String command) |
protected static File |
getRootDir(File dir,
File baseDir,
String markerFileName) |
static void |
main(String[] args) |
public static String getCurrentBranchFileContent(String gitWorkingBranchName, String fileName) throws Exception
Exception
public static List<String> getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName) throws Exception
Exception
public static List<String> getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName, boolean includeDeletedFileNames) throws Exception
Exception
public static String getLatestAuthorFileContent(String fileName) throws Exception
Exception
public static List<String> getLatestAuthorFileNames(String baseDirName) throws Exception
Exception
public static List<String> getLatestAuthorFileNames(String baseDirName, boolean includeDeletedFileNames) throws Exception
Exception
public static String getLocalChangesFileContent(String fileName) throws Exception
Exception
public static List<String> getLocalChangesFileNames(String baseDirName) throws Exception
Exception
public static List<String> getLocalChangesFileNames(String baseDirName, boolean includeDeletedFileNames) throws Exception
Exception
public static void main(String[] args) throws Exception
Exception
protected static String getCurrentBranchCommitId(String gitWorkingBranchName) throws Exception
Exception
protected static List<String> getDeletedFileNames(String baseDirName, String commitId) throws Exception
Exception
protected static Set<String> getDirNames(String baseDirName, Iterable<String> fileNames, String markerFileName)
protected static String getFileContent(String committish, String fileName) throws Exception
Exception
protected static String getFileName(String fileName, int gitLevel)
protected static List<String> getFileNames(String baseDirName, String commitId) throws Exception
Exception
protected static com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader getGitCommandReader(String gitCommand) throws Exception
Exception
protected static int getGitLevel(String baseDirName) throws GitException
GitException
protected static String getLatestAuthorCommitId() throws Exception
Exception
protected static List<String> getLocalChangesFileNames(String baseDirName, String command) throws Exception
Exception
protected static File getRootDir(File dir, File baseDir, String markerFileName)