|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.deployment.synchronizer.git.util.GitUtilities
public class GitUtilities
Utility methods specific for Git
| Constructor Summary | |
|---|---|
GitUtilities()
|
|
| Method Summary | |
|---|---|
static boolean |
addRemote(org.eclipse.jgit.lib.Repository repository,
String remoteUrl)
Adds the remote repository at remoteUrl to the given local repository |
static org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider |
createCredentialsProvider(org.wso2.carbon.deployment.synchronizer.RepositoryManager repositoryManager,
int tenantId)
Creates and return a UsernamePasswordCredentialsProvider instance for a tenant |
static void |
InitGitRepository(File gitRepoDir)
Initialize local git repository |
static boolean |
isValidGitRepo(org.eclipse.jgit.lib.Repository repository)
Checks if an existing local repository is a valid git repository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GitUtilities()
| Method Detail |
|---|
public static boolean isValidGitRepo(org.eclipse.jgit.lib.Repository repository)
repository - Repository instance
public static org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider createCredentialsProvider(org.wso2.carbon.deployment.synchronizer.RepositoryManager repositoryManager,
int tenantId)
tenantId - tenant IdrepositoryManager - RepositoryManager instance
public static void InitGitRepository(File gitRepoDir)
gitRepoDir - directory in the local file system
public static boolean addRemote(org.eclipse.jgit.lib.Repository repository,
String remoteUrl)
repository - Repository instance representing local reporemoteUrl - remote repository url
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||