Class GitUtils
java.lang.Object
org.craftercms.commons.git.utils.GitUtils
org.craftercms.studio.impl.v2.utils.GitUtils
public abstract class GitUtils
extends org.craftercms.commons.git.utils.GitUtils
Common operations related to git
- Since:
- 4.0
- Author:
- joseross
-
Field Summary
Fields inherited from class org.craftercms.commons.git.utils.GitUtils
BIG_FILE_THRESHOLD_CONFIG_PARAM, BIG_FILE_THRESHOLD_DEFAULT, COMPRESSION_CONFIG_PARAM, COMPRESSION_DEFAULT, CORE_CONFIG_SECTION, FILE_MODE_CONFIG_PARAM, FILE_MODE_DEFAULT, GIT_FOLDER_NAME, GIT_INDEX_NAME, GIT_LOCK_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChangedFiles(org.eclipse.jgit.api.Git git, String initialId, String finalId, String[] patterns) getChangedFiles(org.eclipse.jgit.api.Git git, org.eclipse.jgit.lib.ObjectId initialId, org.eclipse.jgit.lib.ObjectId finalId, String[] patterns) static voidtranslateException(org.eclipse.jgit.api.errors.TransportException e, org.slf4j.Logger logger, String remoteName, String remoteUrl, String remoteUsername) Methods inherited from class org.craftercms.commons.git.utils.GitUtils
cleanup, cloneRemoteRepository, deleteFile, deleteGitIndex, discardAllChanges, doDiff, getTreeForCommit, getTreeIteratorForCommit, isRepositoryLocked, openRepository, pull, push, unlock
-
Constructor Details
-
GitUtils
public GitUtils()
-
-
Method Details
-
getChangedFiles
public static List<String> getChangedFiles(org.eclipse.jgit.api.Git git, org.eclipse.jgit.lib.ObjectId initialId, org.eclipse.jgit.lib.ObjectId finalId, String[] patterns) throws org.eclipse.jgit.api.errors.GitAPIException, IOException - Throws:
org.eclipse.jgit.api.errors.GitAPIExceptionIOException
-
getChangedFiles
public static List<String> getChangedFiles(org.eclipse.jgit.api.Git git, String initialId, String finalId, String[] patterns) throws org.eclipse.jgit.api.errors.GitAPIException, IOException - Throws:
org.eclipse.jgit.api.errors.GitAPIExceptionIOException
-
translateException
public static void translateException(org.eclipse.jgit.api.errors.TransportException e, org.slf4j.Logger logger, String remoteName, String remoteUrl, String remoteUsername) throws RemoteRepositoryNotFoundException, InvalidRemoteRepositoryCredentialsException
-