test_class.declarator: localGitPath = Paths.get("target/git_test/local")
test_class.original_string: Path localGitPath = Paths.get("target/git_test/local");
test_class.type: Path
test_class.var_name: localGitPath
test_class.declarator: remoteGitPath = Paths.get("target/git_test/remote")
test_class.original_string: Path remoteGitPath = Paths.get("target/git_test/remote");
test_class.type: Path
test_class.var_name: remoteGitPath
test_class.file: alien4cloud-common/src/test/java/alien4cloud/git/RepositoryManagerTest.java
test_class.identifier: RepositoryManagerTest
test_case.body: @Test
      public void isGitRepository() throws Exception {
          assertThat(RepositoryManager.isGitRepository(localGitPath)).isTrue();
      }
test_case.class_method_signature: RepositoryManagerTest.isGitRepository()
test_case.full_signature: @Test public void isGitRepository()
test_case.identifier: isGitRepository
test_case.invocations: isTrue assertThat isGitRepository
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isGitRepository()
focal_class.declarator: REMOTE_ALIEN_CONFLICTS_PREFIX_BRANCH_NAME = "alien-conflicts-"
focal_class.modifier: private static final
focal_class.original_string: private static final String REMOTE_ALIEN_CONFLICTS_PREFIX_BRANCH_NAME = "alien-conflicts-";
focal_class.type: String
focal_class.var_name: REMOTE_ALIEN_CONFLICTS_PREFIX_BRANCH_NAME
focal_class.declarator: DEFAULT_EMAIL = "not.provided@alien4cloud.org"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_EMAIL = "not.provided@alien4cloud.org";
focal_class.type: String
focal_class.var_name: DEFAULT_EMAIL
focal_class.file: alien4cloud-common/src/main/java/alien4cloud/git/RepositoryManager.java
focal_class.identifier: RepositoryManager
focal_class.class_method_signature: RepositoryManager.close(Git repository)
focal_class.full_signature: public static void close(Git repository)
focal_class.identifier: close
focal_class.modifiers: public static
focal_class.parameters: (Git repository)
focal_class.return: void
focal_class.signature: void close(Git repository)
focal_class.class_method_signature: RepositoryManager.isGitRepository(Path targetDirectory)
focal_class.full_signature: public static boolean isGitRepository(Path targetDirectory)
focal_class.identifier: isGitRepository
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory)
focal_class.return: boolean
focal_class.signature: boolean isGitRepository(Path targetDirectory)
focal_class.class_method_signature: RepositoryManager.isGitRepository(Path targetDirectory, String remoteGitUrl)
focal_class.full_signature: public static boolean isGitRepository(Path targetDirectory, String remoteGitUrl)
focal_class.identifier: isGitRepository
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String remoteGitUrl)
focal_class.return: boolean
focal_class.signature: boolean isGitRepository(Path targetDirectory, String remoteGitUrl)
focal_class.class_method_signature: RepositoryManager.deleteBranch(Path targetDirectory, String branch, boolean deleteRemoteBranch)
focal_class.full_signature: public static void deleteBranch(Path targetDirectory, String branch, boolean deleteRemoteBranch)
focal_class.identifier: deleteBranch
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String branch, boolean deleteRemoteBranch)
focal_class.return: void
focal_class.signature: void deleteBranch(Path targetDirectory, String branch, boolean deleteRemoteBranch)
focal_class.class_method_signature: RepositoryManager.create(Path targetDirectory, String readmeContentIfEmpty)
focal_class.full_signature: public static void create(Path targetDirectory, String readmeContentIfEmpty)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String readmeContentIfEmpty)
focal_class.return: void
focal_class.signature: void create(Path targetDirectory, String readmeContentIfEmpty)
focal_class.class_method_signature: RepositoryManager.commitAll(Path targetDirectory, String userName, String userEmail, String commitMessage)
focal_class.full_signature: public static void commitAll(Path targetDirectory, String userName, String userEmail, String commitMessage)
focal_class.identifier: commitAll
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String userName, String userEmail, String commitMessage)
focal_class.return: void
focal_class.signature: void commitAll(Path targetDirectory, String userName, String userEmail, String commitMessage)
focal_class.class_method_signature: RepositoryManager.cloneOrCheckout(Path targetDirectory, String repositoryUrl, String branch, String localDirectory)
focal_class.full_signature: public static void cloneOrCheckout(Path targetDirectory, String repositoryUrl, String branch, String localDirectory)
focal_class.identifier: cloneOrCheckout
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String repositoryUrl, String branch, String localDirectory)
focal_class.return: void
focal_class.signature: void cloneOrCheckout(Path targetDirectory, String repositoryUrl, String branch, String localDirectory)
focal_class.class_method_signature: RepositoryManager.cloneOrCheckout(Path targetDirectory, String repositoryUrl, String username, String password, String branch, String localDirectory)
focal_class.full_signature: public static Git cloneOrCheckout(Path targetDirectory, String repositoryUrl, String username, String password, String branch, String localDirectory)
focal_class.identifier: cloneOrCheckout
focal_class.modifiers: public static
focal_class.parameters: (Path targetDirectory, String repositoryUrl, String username, String password, String branch, String localDirectory)
focal_class.return: Git
focal_class.signature: Git cloneOrCheckout(Path targetDirectory, String repositoryUrl, String username, String password, String branch, String localDirectory)
focal_class.class_method_signature: RepositoryManager.isTag(Git repository, String branch)
focal_class.full_signature: public static boolean isTag(Git repository, String branch)
focal_class.identifier: isTag
focal_class.modifiers: public static
focal_class.parameters: (Git repository, String branch)
focal_class.return: boolean
focal_class.signature: boolean isTag(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.isBranch(Git repository, String branch)
focal_class.full_signature: public static boolean isBranch(Git repository, String branch)
focal_class.identifier: isBranch
focal_class.modifiers: public static
focal_class.parameters: (Git repository, String branch)
focal_class.return: boolean
focal_class.signature: boolean isBranch(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.addPrefix(Git repository, String branch)
focal_class.full_signature: private static String addPrefix(Git repository, String branch)
focal_class.identifier: addPrefix
focal_class.modifiers: private static
focal_class.parameters: (Git repository, String branch)
focal_class.return: String
focal_class.signature: String addPrefix(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.branchExistsLocally(Git git, String branch)
focal_class.full_signature: private static boolean branchExistsLocally(Git git, String branch)
focal_class.identifier: branchExistsLocally
focal_class.modifiers: private static
focal_class.parameters: (Git git, String branch)
focal_class.return: boolean
focal_class.signature: boolean branchExistsLocally(Git git, String branch)
focal_class.class_method_signature: RepositoryManager.stash(Path repositoryDirectory, String stashId)
focal_class.full_signature: public static void stash(Path repositoryDirectory, String stashId)
focal_class.identifier: stash
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String stashId)
focal_class.return: void
focal_class.signature: void stash(Path repositoryDirectory, String stashId)
focal_class.class_method_signature: RepositoryManager.dropStash(Path repositoryDirectory, String stashId)
focal_class.full_signature: public static void dropStash(Path repositoryDirectory, String stashId)
focal_class.identifier: dropStash
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String stashId)
focal_class.return: void
focal_class.signature: void dropStash(Path repositoryDirectory, String stashId)
focal_class.class_method_signature: RepositoryManager.applyStashThenDrop(Path repositoryDirectory, String stashId)
focal_class.full_signature: public static void applyStashThenDrop(Path repositoryDirectory, String stashId)
focal_class.identifier: applyStashThenDrop
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String stashId)
focal_class.return: void
focal_class.signature: void applyStashThenDrop(Path repositoryDirectory, String stashId)
focal_class.class_method_signature: RepositoryManager.checkoutExistingBranchOrCreateOrphan(Git git, boolean isLocalOnly, String username, String password, String branch)
focal_class.full_signature: private static void checkoutExistingBranchOrCreateOrphan(Git git, boolean isLocalOnly, String username, String password, String branch)
focal_class.identifier: checkoutExistingBranchOrCreateOrphan
focal_class.modifiers: private static
focal_class.parameters: (Git git, boolean isLocalOnly, String username, String password, String branch)
focal_class.return: void
focal_class.signature: void checkoutExistingBranchOrCreateOrphan(Git git, boolean isLocalOnly, String username, String password, String branch)
focal_class.class_method_signature: RepositoryManager.checkoutExistingBranchOrCreateOrphan(Path repositoryDirectory, boolean isLocalOnly, String username, String password, String branch)
focal_class.full_signature: public static void checkoutExistingBranchOrCreateOrphan(Path repositoryDirectory, boolean isLocalOnly, String username, String password, String branch)
focal_class.identifier: checkoutExistingBranchOrCreateOrphan
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, boolean isLocalOnly, String username, String password, String branch)
focal_class.return: void
focal_class.signature: void checkoutExistingBranchOrCreateOrphan(Path repositoryDirectory, boolean isLocalOnly, String username, String password, String branch)
focal_class.class_method_signature: RepositoryManager.getFullTagReference(Git repository, String branch)
focal_class.full_signature: private static String getFullTagReference(Git repository, String branch)
focal_class.identifier: getFullTagReference
focal_class.modifiers: private static
focal_class.parameters: (Git repository, String branch)
focal_class.return: String
focal_class.signature: String getFullTagReference(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.getFullBranchReference(Git repository, String branch)
focal_class.full_signature: private static String getFullBranchReference(Git repository, String branch)
focal_class.identifier: getFullBranchReference
focal_class.modifiers: private static
focal_class.parameters: (Git repository, String branch)
focal_class.return: String
focal_class.signature: String getFullBranchReference(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.checkoutRepository(Git repository, String branch)
focal_class.full_signature: private static void checkoutRepository(Git repository, String branch)
focal_class.identifier: checkoutRepository
focal_class.modifiers: private static
focal_class.parameters: (Git repository, String branch)
focal_class.return: void
focal_class.signature: void checkoutRepository(Git repository, String branch)
focal_class.class_method_signature: RepositoryManager.cloneRepository(String url, String username, String password, String branch, Path targetPath)
focal_class.full_signature: private static Git cloneRepository(String url, String username, String password, String branch, Path targetPath)
focal_class.identifier: cloneRepository
focal_class.modifiers: private static
focal_class.parameters: (String url, String username, String password, String branch, Path targetPath)
focal_class.return: Git
focal_class.signature: Git cloneRepository(String url, String username, String password, String branch, Path targetPath)
focal_class.class_method_signature: RepositoryManager.pull(Git repository, String username, String password)
focal_class.full_signature: public static boolean pull(Git repository, String username, String password)
focal_class.identifier: pull
focal_class.modifiers: public static
focal_class.parameters: (Git repository, String username, String password)
focal_class.return: boolean
focal_class.signature: boolean pull(Git repository, String username, String password)
focal_class.class_method_signature: RepositoryManager.getLastHash(Git git)
focal_class.full_signature: public static String getLastHash(Git git)
focal_class.identifier: getLastHash
focal_class.modifiers: public static
focal_class.parameters: (Git git)
focal_class.return: String
focal_class.signature: String getLastHash(Git git)
focal_class.class_method_signature: RepositoryManager.setCredentials(TransportCommand<?, ?> command, String username, String password)
focal_class.full_signature: private static void setCredentials(TransportCommand<?, ?> command, String username, String password)
focal_class.identifier: setCredentials
focal_class.modifiers: private static
focal_class.parameters: (TransportCommand<?, ?> command, String username, String password)
focal_class.return: void
focal_class.signature: void setCredentials(TransportCommand<?, ?> command, String username, String password)
focal_class.class_method_signature: RepositoryManager.getHistory(Path repositoryDirectory, int from, int count)
focal_class.full_signature: public static List<SimpleGitHistoryEntry> getHistory(Path repositoryDirectory, int from, int count)
focal_class.identifier: getHistory
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, int from, int count)
focal_class.return: List<SimpleGitHistoryEntry>
focal_class.signature: List<SimpleGitHistoryEntry> getHistory(Path repositoryDirectory, int from, int count)
focal_class.class_method_signature: RepositoryManager.setRemote(Path repositoryDirectory, String remoteName, String remoteUrl)
focal_class.full_signature: public static void setRemote(Path repositoryDirectory, String remoteName, String remoteUrl)
focal_class.identifier: setRemote
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String remoteName, String remoteUrl)
focal_class.return: void
focal_class.signature: void setRemote(Path repositoryDirectory, String remoteName, String remoteUrl)
focal_class.class_method_signature: RepositoryManager.getRemoteUrl(Path repositoryDirectory, String remoteName)
focal_class.full_signature: public static String getRemoteUrl(Path repositoryDirectory, String remoteName)
focal_class.identifier: getRemoteUrl
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String remoteName)
focal_class.return: String
focal_class.signature: String getRemoteUrl(Path repositoryDirectory, String remoteName)
focal_class.class_method_signature: RepositoryManager.getCurrentBranchName(Path repositoryDirectory)
focal_class.full_signature: public static String getCurrentBranchName(Path repositoryDirectory)
focal_class.identifier: getCurrentBranchName
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory)
focal_class.return: String
focal_class.signature: String getCurrentBranchName(Path repositoryDirectory)
focal_class.class_method_signature: RepositoryManager.isOnBranch(Path repositoryDirectory, String branchName)
focal_class.full_signature: public static boolean isOnBranch(Path repositoryDirectory, String branchName)
focal_class.identifier: isOnBranch
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String branchName)
focal_class.return: boolean
focal_class.signature: boolean isOnBranch(Path repositoryDirectory, String branchName)
focal_class.class_method_signature: RepositoryManager.renameBranches(Path repositoryDirectory, Map<String, String> branchOldNameToNewName)
focal_class.full_signature: public static void renameBranches(Path repositoryDirectory, Map<String, String> branchOldNameToNewName)
focal_class.identifier: renameBranches
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, Map<String, String> branchOldNameToNewName)
focal_class.return: void
focal_class.signature: void renameBranches(Path repositoryDirectory, Map<String, String> branchOldNameToNewName)
focal_class.class_method_signature: RepositoryManager.push(Path repositoryDirectory, String username, String password)
focal_class.full_signature: public static boolean push(Path repositoryDirectory, String username, String password)
focal_class.identifier: push
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String username, String password)
focal_class.return: boolean
focal_class.signature: boolean push(Path repositoryDirectory, String username, String password)
focal_class.class_method_signature: RepositoryManager.push(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.full_signature: public static boolean push(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.identifier: push
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.return: boolean
focal_class.signature: boolean push(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.class_method_signature: RepositoryManager.generateConflictBranchName(Repository repository, String remoteName)
focal_class.full_signature: private static String generateConflictBranchName(Repository repository, String remoteName)
focal_class.identifier: generateConflictBranchName
focal_class.modifiers: private static
focal_class.parameters: (Repository repository, String remoteName)
focal_class.return: String
focal_class.signature: String generateConflictBranchName(Repository repository, String remoteName)
focal_class.class_method_signature: RepositoryManager.rebranch(Git git, String localBranch, String remoteBranch)
focal_class.full_signature: public static void rebranch(Git git, String localBranch, String remoteBranch)
focal_class.identifier: rebranch
focal_class.modifiers: public static
focal_class.parameters: (Git git, String localBranch, String remoteBranch)
focal_class.return: void
focal_class.signature: void rebranch(Git git, String localBranch, String remoteBranch)
focal_class.class_method_signature: RepositoryManager.push(Git git, String username, String password, String localBranch, String remoteBranch)
focal_class.full_signature: public static boolean push(Git git, String username, String password, String localBranch, String remoteBranch)
focal_class.identifier: push
focal_class.modifiers: public static
focal_class.parameters: (Git git, String username, String password, String localBranch, String remoteBranch)
focal_class.return: boolean
focal_class.signature: boolean push(Git git, String username, String password, String localBranch, String remoteBranch)
focal_class.class_method_signature: RepositoryManager.isPushed(Iterable<PushResult> call)
focal_class.full_signature: private static boolean isPushed(Iterable<PushResult> call)
focal_class.identifier: isPushed
focal_class.modifiers: private static
focal_class.parameters: (Iterable<PushResult> call)
focal_class.return: boolean
focal_class.signature: boolean isPushed(Iterable<PushResult> call)
focal_class.class_method_signature: RepositoryManager.fetch(Git git, String username, String password)
focal_class.full_signature: public static void fetch(Git git, String username, String password)
focal_class.identifier: fetch
focal_class.modifiers: public static
focal_class.parameters: (Git git, String username, String password)
focal_class.return: void
focal_class.signature: void fetch(Git git, String username, String password)
focal_class.class_method_signature: RepositoryManager.pull(Path repositoryDirectory, String username, String password)
focal_class.full_signature: public static void pull(Path repositoryDirectory, String username, String password)
focal_class.identifier: pull
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String username, String password)
focal_class.return: void
focal_class.signature: void pull(Path repositoryDirectory, String username, String password)
focal_class.class_method_signature: RepositoryManager.pull(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.full_signature: public static void pull(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.identifier: pull
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.return: void
focal_class.signature: void pull(Path repositoryDirectory, String username, String password, String remoteBranch)
focal_class.class_method_signature: RepositoryManager.clean(Path repositoryDirectory)
focal_class.full_signature: public static void clean(Path repositoryDirectory)
focal_class.identifier: clean
focal_class.modifiers: public static
focal_class.parameters: (Path repositoryDirectory)
focal_class.return: void
focal_class.signature: void clean(Path repositoryDirectory)
focal_class.class_method_signature: RepositoryManager.checkRepositoryState(RepositoryState repositoryState, String errorMessage)
focal_class.full_signature: private static void checkRepositoryState(RepositoryState repositoryState, String errorMessage)
focal_class.identifier: checkRepositoryState
focal_class.modifiers: private static
focal_class.parameters: (RepositoryState repositoryState, String errorMessage)
focal_class.return: void
focal_class.signature: void checkRepositoryState(RepositoryState repositoryState, String errorMessage)
focal_class.class_method_signature: RepositoryManager.defaultEmailIfNull(String username, String email)
focal_class.full_signature: private static String defaultEmailIfNull(String username, String email)
focal_class.identifier: defaultEmailIfNull
focal_class.modifiers: private static
focal_class.parameters: (String username, String email)
focal_class.return: String
focal_class.signature: String defaultEmailIfNull(String username, String email)
focal_class.class_method_signature: RepositoryManager.defaultUsernameIfNull(String username)
focal_class.full_signature: private static String defaultUsernameIfNull(String username)
focal_class.identifier: defaultUsernameIfNull
focal_class.modifiers: private static
focal_class.parameters: (String username)
focal_class.return: String
focal_class.signature: String defaultUsernameIfNull(String username)
focal_method.body: public static boolean isGitRepository(Path targetDirectory) {
          Git repository = null;
          try {
              repository = Git.open(targetDirectory.toFile());
              return true;
          } catch (IOException e) {
              return false;
          } finally {
              close(repository);
          }
      }
focal_method.class_method_signature: RepositoryManager.isGitRepository(Path targetDirectory)
focal_method.full_signature: public static boolean isGitRepository(Path targetDirectory)
focal_method.identifier: isGitRepository
focal_method.invocations: open toFile close
focal_method.modifiers: public static
focal_method.parameters: (Path targetDirectory)
focal_method.return: boolean
focal_method.signature: boolean isGitRepository(Path targetDirectory)