Package com.liferay.portal.tools
Class GitUtil
Object
com.liferay.portal.tools.GitUtil
- Author:
- Hugo Huijser, Andrea Di Giorgi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentBranchAddedFileNames(String baseDirName, String gitWorkingBranchName) getCurrentBranchCommitMessages(String baseDirName, String gitWorkingBranchName) getCurrentBranchDeletedFileNames(String baseDirName, String gitWorkingBranchName) static StringgetCurrentBranchDiff(String baseDirName, String gitWorkingBranchName) static StringgetCurrentBranchFileDiff(String baseDirName, String gitWorkingBranchName, String fileName) getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName) getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName, boolean includeDeletedFileNames) getCurrentBranchRenamedFileNames(String baseDirName, String gitWorkingBranchName) getDeletedFileNames(String baseDirName, String commitId) getDirNames(String baseDirName, Iterable<String> fileNames, String markerFileName) static StringgetFileContent(String fileName) protected static StringgetFileName(String fileName, int gitLevel) getFileNames(String baseDirName, String commitId) protected static com.liferay.portal.kernel.io.unsync.UnsyncBufferedReadergetGitCommandReader(String gitCommand) protected static intgetGitLevel(String baseDirName) protected static StringgetLatestAuthorFileNames(String baseDirName) getLatestAuthorFileNames(String baseDirName, boolean includeDeletedFileNames) static StringgetLocalChangesFileNames(String baseDirName) getLocalChangesFileNames(String baseDirName, boolean includeDeletedFileNames) getLocalChangesFileNames(String baseDirName, String command) getModifiedFileNames(String baseDirName, int commitCount) getModifiedFileNames(String baseDirName, int commitCount, boolean includeDeletedFileNames) getModifiedLastDayFileNames(String baseDirName) protected static FilegetRootDir(File dir, File baseDir, String markerFileName) static void
-
Constructor Details
-
GitUtil
public GitUtil()
-
-
Method Details
-
getCurrentBranchAddedFileNames
public static List<String> getCurrentBranchAddedFileNames(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getCurrentBranchCommitMessages
public static List<String> getCurrentBranchCommitMessages(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getCurrentBranchDeletedFileNames
public static List<String> getCurrentBranchDeletedFileNames(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getCurrentBranchDiff
public static String getCurrentBranchDiff(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getCurrentBranchFileDiff
public static String getCurrentBranchFileDiff(String baseDirName, String gitWorkingBranchName, String fileName) throws Exception - Throws:
Exception
-
getCurrentBranchFileNames
public static List<String> getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getCurrentBranchFileNames
public static List<String> getCurrentBranchFileNames(String baseDirName, String gitWorkingBranchName, boolean includeDeletedFileNames) throws Exception - Throws:
Exception
-
getCurrentBranchRenamedFileNames
public static List<String> getCurrentBranchRenamedFileNames(String baseDirName, String gitWorkingBranchName) throws Exception - Throws:
Exception
-
getFileContent
- Throws:
Exception
-
getLatestAuthorFileNames
- Throws:
Exception
-
getLatestAuthorFileNames
public static List<String> getLatestAuthorFileNames(String baseDirName, boolean includeDeletedFileNames) throws Exception - Throws:
Exception
-
getLatestCommitId
- Throws:
Exception
-
getLocalChangesFileNames
- Throws:
Exception
-
getLocalChangesFileNames
public static List<String> getLocalChangesFileNames(String baseDirName, boolean includeDeletedFileNames) throws Exception - Throws:
Exception
-
getModifiedFileNames
public static List<String> getModifiedFileNames(String baseDirName, int commitCount) throws Exception - Throws:
Exception
-
getModifiedFileNames
public static List<String> getModifiedFileNames(String baseDirName, int commitCount, boolean includeDeletedFileNames) throws Exception - Throws:
Exception
-
getModifiedLastDayFileNames
- Throws:
Exception
-
main
- Throws:
Exception
-
getDeletedFileNames
protected static List<String> getDeletedFileNames(String baseDirName, String commitId) throws Exception - Throws:
Exception
-
getDirNames
-
getFileName
-
getFileNames
- Throws:
Exception
-
getGitCommandReader
protected static com.liferay.portal.kernel.io.unsync.UnsyncBufferedReader getGitCommandReader(String gitCommand) throws Exception - Throws:
Exception
-
getGitLevel
- Throws:
GitException
-
getLatestAuthorCommitId
- Throws:
Exception
-
getLocalChangesFileNames
protected static List<String> getLocalChangesFileNames(String baseDirName, String command) throws Exception - Throws:
Exception
-
getRootDir
-