Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
43,700 | boolean (Object o) { if (this == o) return true; if (!(o instanceof GitPushTarget target)) return false; if (myIsNewBranchCreated != target.myIsNewBranchCreated) return false; if (!myRemoteBranch.equals(target.myRemoteBranch)) return false; return true; } | equals |
43,701 | int () { int result = myRemoteBranch.hashCode(); result = 31 * result + (myIsNewBranchCreated ? 1 : 0); return result; } | hashCode |
43,702 | String () { return myRemoteBranch.getNameForLocalOperations(); } | toString |
43,703 | GitPushRepoResult (@NotNull GitPushNativeResult result, @NotNull List<? extends GitPushNativeResult> tagResults, int commits, @NotNull GitPushSource source, @NotNull GitRemoteBranch target) { List<String> tags = ContainerUtil.map(tagResults, result1 -> result1.getSourceRef()); return new GitPushRepoResult(convertType(r... | convertFromNative |
43,704 | GitPushRepoResult (@NotNull GitPushSource source, @NotNull GitRemoteBranch target, @NotNull String error) { return new GitPushRepoResult(Type.ERROR, -1, source.getRevision(), target.getFullName(), target.getRemote().getName(), Collections.emptyList(), error, null); } | error |
43,705 | GitPushRepoResult (@NotNull GitPushSource source, @NotNull GitRemoteBranch target) { return new GitPushRepoResult(Type.NOT_PUSHED, -1, source.getRevision(), target.getFullName(), target.getRemote().getName(), Collections.emptyList(), null, null); } | notPushed |
43,706 | GitPushRepoResult (GitPushRepoResult original, GitUpdateResult updateResult) { return new GitPushRepoResult(original.getType(), original.getNumberOfPushedCommits(), original.getSourceBranch(), original.getTargetBranch(), original.getTargetRemote(), original.getPushedTags(), original.getError(), updateResult); } | addUpdateResult |
43,707 | Type () { return myType; } | getType |
43,708 | String () { return mySourceBranch; } | getSourceBranch |
43,709 | Type (@NotNull GitPushNativeResult nativeResult) { return switch (nativeResult.getType()) { case SUCCESS -> Type.SUCCESS; case FORCED_UPDATE -> Type.FORCED; case NEW_REF -> Type.NEW_BRANCH; case REJECTED -> { if (nativeResult.isNonFFUpdate()) yield Type.REJECTED_NO_FF; if (nativeResult.isStaleInfo()) yield Type.REJECTE... | convertType |
43,710 | AbstractVcs () { return myVcs; } | getVcs |
43,711 | boolean (@NotNull GitRepository repository, @NotNull GitPushSource source, @NotNull GitPushTarget target) { if (repository.isFresh()) return false; return true; } | canBePushed |
43,712 | GitPushTarget (@NotNull GitRepository repository, @NotNull GitRemote remote, @NotNull String branchName) { GitRemoteBranch existingRemoteBranch = findRemoteBranch(repository, remote, branchName); if (existingRemoteBranch != null) { return new GitPushTarget(existingRemoteBranch, false); } return new GitPushTarget(new Gi... | makeTargetForNewBranch |
43,713 | GitPushSource (@NotNull GitRepository repository) { GitLocalBranch currentBranch = repository.getCurrentBranch(); return currentBranch != null ? GitPushSource.create(currentBranch) : GitPushSource.createDetached(Objects.requireNonNull(repository.getCurrentRevision())); // fresh repository is on branch } | getSource |
43,714 | RepositoryManager<GitRepository> () { return myRepositoryManager; } | getRepositoryManager |
43,715 | PushTargetPanel<GitPushTarget> (@NotNull GitRepository repository, @NotNull GitPushSource source, @Nullable GitPushTarget defaultTarget) { return new GitPushTargetPanel(this, repository, source, defaultTarget); } | createTargetPanel |
43,716 | boolean (@NotNull GitRepository repo, @NotNull GitPushTarget target) { final String targetBranch = target.getBranch().getNameForRemoteOperations(); return !mySharedSettings.isBranchProtected(targetBranch); } | isForcePushAllowed |
43,717 | boolean () { return GitVersionSpecialty.PRE_PUSH_HOOK.existsIn(myVcs) && getRepositoryManager() .getRepositories() .stream() .map(e -> e.getInfo().getHooksInfo()) .anyMatch(GitHooksInfo::isPrePushHookAvailable); } | shouldShowSkipHookOption |
43,718 | boolean (@NotNull GitPushTarget target) { return myCommonPushSettings.containsForcePushTarget(target.getBranch().getRemote().getName(), target.getBranch().getNameForRemoteOperations()); } | isSilentForcePushAllowed |
43,719 | void (@NotNull GitPushTarget target) { myCommonPushSettings.addForcePushTarget(target.getBranch().getRemote().getName(), target.getBranch().getNameForRemoteOperations()); } | saveSilentForcePushTarget |
43,720 | boolean () { return true; } | mayChangeTargetsSync |
43,721 | OutgoingResult (@NotNull GitRepository repository, @NotNull PushSpec<GitPushSource, GitPushTarget> pushSpec, boolean initial) { GitPushSource gitPushSource = pushSpec.getSource(); String source = gitPushSource.getRevision(); GitPushTarget target = pushSpec.getTarget(); String destination = target.getBranch().getFullNam... | getOutgoingCommits |
43,722 | boolean (@NotNull String source, @NotNull String target) { int sourceStar = source.indexOf('*'); int targetStar = target.indexOf('*'); return (sourceStar < 0 && targetStar < 0) || (sourceStar == source.length() - 1 && targetStar == target.length() - 1); } | isStarPositionValid |
43,723 | GitPushSource (@NotNull GitLocalBranch branch) { return new OnBranch(branch); } | create |
43,724 | GitPushSource (@NotNull GitLocalBranch branch, @NotNull String revision) { return new OnRevision(branch, revision); } | createRef |
43,725 | GitPushSource (@NotNull String revision) { return new DetachedHead(revision); } | createDetached |
43,726 | String () { return getPresentation(); } | toString |
43,727 | String () { return myBranch.getName(); } | getPresentation |
43,728 | GitLocalBranch () { return myBranch; } | getBranch |
43,729 | String () { return myBranch.getFullName(); } | getRevision |
43,730 | boolean () { return true; } | isBranchRef |
43,731 | String () { return DvcsUtil.getShortHash(myRevision); } | getPresentation |
43,732 | GitLocalBranch () { return myBranch; } | getBranch |
43,733 | String () { return myRevision; } | getRevision |
43,734 | boolean () { return false; } | isBranchRef |
43,735 | String () { return DvcsUtil.getShortHash(myRevision); } | getPresentation |
43,736 | String () { return myRevision; } | getRevision |
43,737 | boolean () { return false; } | isBranchRef |
43,738 | void (@NotNull Map<GitRepository, PushSpec<GitPushSource, GitPushTarget>> pushSpecs, @Nullable VcsPushOptionValue additionalOption, boolean force) { push(pushSpecs, additionalOption, force, emptyMap()); } | push |
43,739 | void (@NotNull Map<GitRepository, PushSpec<GitPushSource, GitPushTarget>> pushSpecs, @Nullable VcsPushOptionValue optionValue, boolean force, @NotNull Map<String, VcsPushOptionValue> customParams) { expireExistingErrorsAndWarnings(); GitPushTagMode pushTagMode; boolean skipHook; if (optionValue instanceof GitVcsPushOpt... | push |
43,740 | void (@NotNull Project project, @NotNull GitPushOperation pushOperation, @NotNull Map<String, VcsPushOptionValue> customParams) { GitPushResult pushResult = pushOperation.execute(); GitPushListener pushListener = project.getMessageBus().syncPublisher(GitPushListener.getTOPIC()); for (Map.Entry<GitRepository, GitPushRep... | pushAndNotify |
43,741 | void () { GitPushResultNotification[] existingNotifications = NotificationsManager.getNotificationsManager().getNotificationsOfType(GitPushResultNotification.class, myProject); for (GitPushResultNotification notification : existingNotifications) { if (notification.getType() != NotificationType.INFORMATION) { notificati... | expireExistingErrorsAndWarnings |
43,742 | GroupedPushResult (@NotNull Map<GitRepository, GitPushRepoResult> results) { Map<GitRepository, GitPushRepoResult> successful = new HashMap<>(); Map<GitRepository, GitPushRepoResult> rejected = new HashMap<>(); Map<GitRepository, GitPushRepoResult> customRejected = new HashMap<>(); Map<GitRepository, GitPushRepoResult>... | group |
43,743 | String () { return myRef; } | getNameForRemoteOperations |
43,744 | String () { return myRef; } | getNameForLocalOperations |
43,745 | GitRemote () { return myRemote; } | getRemote |
43,746 | String () { return myRef; } | getFullName |
43,747 | Type () { return myType; } | getType |
43,748 | String () { return mySourceRef; } | getSourceRef |
43,749 | String () { return String.format("%s: '%s', '%s', '%s'", myType, mySourceRef, myRange, myReason); } | toString |
43,750 | GitPushResultNotification (@NotNull Project project, @NotNull GitPushResult pushResult, @Nullable GitPushOperation pushOperation, boolean multiRepoProject, @Nullable GitUpdateInfoAsLog.NotificationData notificationData, @NotNull Map<String, VcsPushOptionValue> customParams) { GroupedPushResult grouped = GroupedPushResu... | create |
43,751 | void (@NotNull AnActionEvent e) { } | actionPerformed |
43,752 | void (@NotNull AnActionEvent e, @NotNull Notification notification) { notification.expire(); Project project = myProject; new Task.Backgroundable(project, GitBundle.message("push.notification.force.push.progress.title.pushing"), true) { @Override public void run(@NotNull ProgressIndicator indicator) { GitPushOperation ... | actionPerformed |
43,753 | void (@NotNull ProgressIndicator indicator) { GitPushOperation forcePushOperation = myOperation.deriveForceWithoutLease(myRepositories); GitPusher.pushAndNotify(project, forcePushOperation, customParams); } | run |
43,754 | boolean (@NotNull GitConflict conflict) { VirtualFile file = conflict.getFilePath().getVirtualFile(); if (file == null) return false; if (file.isDirectory()) return false; // Can't handle conflicts in submodules return conflict.getStatus(ConflictSide.OURS) != Status.DELETED || conflict.getStatus(ConflictSide.THEIRS) !=... | canResolveConflict |
43,755 | Project () { return myProject; } | getProject |
43,756 | VirtualFile () { return myFile; } | getVirtualFile |
43,757 | MergeData () { return myMergeData; } | getMergeData |
43,758 | void (@NotNull MergeResult result) { if (result != MergeResult.CANCEL) { try { GitMergeUtil.markConflictResolved(myProject, myConflict.getRoot(), singletonList(myConflict), getResolutionSide(result)); } catch (VcsException e) { LOG.error(String.format("Unexpected exception during the git operation: file - %s)", myConfl... | onConflictResolved |
43,759 | String () { return myWindowTitle; } | getWindowTitle |
43,760 | List<String> () { return myContentTitles; } | getContentTitles |
43,761 | DiffEditorTitleCustomizerList () { return myTitleCustomizerList; } | getTitleCustomizerList |
43,762 | boolean () { if (myIsValid) { GitRepository repository = GitRepositoryManager.getInstance(myProject).getRepositoryForRootQuick(myConflict.getRoot()); if (repository == null) return true; myIsValid = repository.getStagingAreaHolder().findConflict(myConflict.getFilePath()) != null; } return myIsValid; } | checkIsValid |
43,763 | void (@NotNull MergeCallback.Listener listener, @NotNull Disposable disposable) { myProject.getMessageBus().connect(disposable).subscribe(GitStagingAreaHolder.TOPIC, (repo) -> { if (myIsValid && myConflict.getRoot().equals(repo.getRoot())) { if (!checkIsValid()) { listener.fireConflictInvalid(); } } }); } | addListener |
43,764 | boolean (Project project) { if (!Registry.is("git.merge.conflicts.toolwindow")) return false; return ContainerUtil.exists(GitRepositoryManager.getInstance(project).getRepositories(), repo -> repo.getStagingAreaHolder().hasConflicts()); } | test |
43,765 | void (@NotNull Content content) { content.putUserData(ChangesViewContentManager.ORDER_WEIGHT_KEY, ChangesViewContentManager.TabOrderWeight.REPOSITORY.getWeight() + 1); } | preloadTabContent |
43,766 | void (@NotNull Content content) { GitDefaultMergeDialogCustomizer mergeDialogCustomizer = new GitDefaultMergeDialogCustomizer(myProject); GitConflictsView panel = new GitConflictsView(myProject, mergeDialogCustomizer); content.setComponent(panel.getComponent()); content.setPreferredFocusedComponent(() -> panel.getPrefe... | initTabContent |
43,767 | String () { return GitBundle.message("tab.title.conflicts"); } | get |
43,768 | void (@NotNull GitRepository repository) { if (!Registry.is("git.merge.conflicts.toolwindow")) return; Project project = repository.getProject(); ApplicationManager.getApplication().invokeLater(() -> { project.getMessageBus().syncPublisher(ChangesViewContentManagerListener.TOPIC).toolWindowMappingChanged(); }, Modality... | stagingAreaChanged |
43,769 | void () { if (!Registry.is("git.merge.conflicts.toolwindow")) return; ApplicationManager.getApplication().invokeLater(() -> { myProject.getMessageBus().syncPublisher(ChangesViewContentManagerListener.TOPIC).toolWindowMappingChanged(); }, ModalityState.nonModal()); } | mappingChanged |
43,770 | GitVFSListener (@NotNull GitVcs vcs, @NotNull Disposable disposable) { GitVFSListener listener = new GitVFSListener(vcs); Disposer.register(disposable, listener); listener.installListeners(); return listener; } | createInstance |
43,771 | String () { return message("vfs.listener.add.title"); } | getAddTitle |
43,772 | String () { return message("vfs.listener.add.single.title"); } | getSingleFileAddTitle |
43,773 | String () { return message("vfs.listener.add.single.prompt"); } | getSingleFileAddPromptTemplate |
43,774 | void (final @NotNull List<VirtualFile> addedFiles, final @NotNull Map<VirtualFile, VirtualFile> copyFromMap) { saveUnsavedVcsIgnoreFiles(); ProgressManager.getInstance().run(new Task.Backgroundable(myProject, message("vfs.listener.checking.ignored"), true) { @Override public void run(@NotNull ProgressIndicator pi) { //... | executeAdd |
43,775 | void (@NotNull ProgressIndicator pi) { // Filter added files before further processing Map<VirtualFile, List<VirtualFile>> sortedFiles = GitUtil.sortFilesByGitRootIgnoringMissing(myProject, addedFiles); final HashSet<VirtualFile> retainedFiles = new HashSet<>(); for (Map.Entry<VirtualFile, List<VirtualFile>> e : sorted... | run |
43,776 | void (final @NotNull Collection<VirtualFile> addedFiles, final @NotNull Map<VirtualFile, VirtualFile> copyFromMap) { // copied files (copyFromMap) are ignored, because they are included into added files. performAdding(map(addedFiles, VcsUtil::getFilePath)); } | performAdding |
43,777 | void (Collection<? extends FilePath> filesToAdd) { performBackgroundOperation(filesToAdd, message("add.adding"), new LongOperationPerRootExecutor() { @Override public void execute(@NotNull VirtualFile root, @NotNull List<? extends FilePath> files) throws VcsException { if (isStageEnabled()) { executeAddingToIndex(root,... | performAdding |
43,778 | String () { return message("vfs.listener.delete.title"); } | getDeleteTitle |
43,779 | String () { return message("vfs.listener.delete.single.title"); } | getSingleFileDeleteTitle |
43,780 | String () { return message("vfs.listener.delete.single.prompt"); } | getSingleFileDeletePromptTemplate |
43,781 | void (final @NotNull List<FilePath> filesToDelete) { performBackgroundOperation(filesToDelete, message("remove.removing"), new LongOperationPerRootExecutor() { @Override public void execute(@NotNull VirtualFile root, @NotNull List<? extends FilePath> files) throws VcsException { executeDeletion(root, files); if (!myPro... | performDeletion |
43,782 | void (final @NotNull List<MovedFileInfo> movedFiles) { List<FilePath> toAdd = new ArrayList<>(); List<FilePath> toRemove = new ArrayList<>(); List<MovedFileInfo> toForceMove = new ArrayList<>(); for (MovedFileInfo movedInfo : movedFiles) { String oldPath = movedInfo.myOldPath; String newPath = movedInfo.myNewPath; if (... | performMoveRename |
43,783 | void (@NotNull ProgressIndicator indicator) { try { List<FilePath> dirtyPaths = new ArrayList<>(); List<File> toRefresh = new ArrayList<>(); //perform adding for (Map.Entry<VirtualFile, List<FilePath>> toAddEntry : GitUtil.sortFilePathsByGitRootIgnoringMissing(myProject, selectedToAdd).entrySet()) { List<FilePath> file... | run |
43,784 | Set<File> (@NotNull VirtualFile root, @NotNull List<? extends FilePath> files, @NotNull Map<FilePath, MovedFileInfo> filesToMove) { Set<File> toRefresh = new HashSet<>(); for (FilePath file : files) { MovedFileInfo info = filesToMove.get(file); GitLineHandler h = new GitLineHandler(myProject, root, GitCommand.MV); h.ad... | executeForceMove |
43,785 | boolean () { return GitStageManagerKt.isStagingAreaAvailable(myProject); } | isStageEnabled |
43,786 | boolean () { return true; } | isRecursiveDeleteSupported |
43,787 | boolean () { return false; } | isFileCopyingFromTrackingSupported |
43,788 | List<FilePath> (final @NotNull List<FilePath> deletedFiles) { if (isStageEnabled()) { return super.selectFilePathsToDelete(deletedFiles); } if (Value.DO_NOTHING_SILENTLY.equals(myRemoveOption.getValue())) { return Collections.emptyList(); } else { // For git asking about vcs delete does not make much sense. The result ... | selectFilePathsToDelete |
43,789 | void (@NotNull Collection<? extends FilePath> files, @NotNull @NlsContexts.ProgressTitle String operationTitle, @NotNull LongOperationPerRootExecutor executor) { GitVcs.runInBackground(new Task.Backgroundable(myProject, operationTitle) { @Override public void run(@NotNull ProgressIndicator indicator) { GitUtil.sortFile... | performBackgroundOperation |
43,790 | void (@NotNull ProgressIndicator indicator) { GitUtil.sortFilePathsByGitRootIgnoringMissing(myProject, files).forEach((root, filePaths) -> { try { executor.execute(root, filePaths); } catch (final VcsException ex) { GitVcsConsoleWriter.getInstance(myProject).showMessage(ex.getMessage()); } }); } | run |
43,791 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myExternalFilesProcessor.waitForEventsProcessedInTestMode(); } | waitForExternalFilesEventsProcessedInTestMode |
43,792 | GitResetMode () { return MIXED; } | getDefault |
43,793 | String () { return myArgument; } | getArgument |
43,794 | void (final @NotNull Project project, final @NotNull Map<GitRepository, VcsFullCommitDetails> commits) { GitVcsSettings settings = GitVcsSettings.getInstance(project); GitResetMode defaultMode = ObjectUtils.notNull(settings.getResetMode(), GitResetMode.getDefault()); GitNewResetDialog dialog = new GitNewResetDialog(pro... | actionPerformed |
43,795 | void (@NotNull ProgressIndicator indicator) { Map<GitRepository, Hash> hashes = commits.keySet().stream().collect( Collectors.toMap(Function.identity(), repo -> commits.get(repo).getId())); new GitResetOperation(project, hashes, selectedMode, indicator).execute(); } | run |
43,796 | AbstractRepositoryManager<GitRepository> (@NotNull Project project) { return GitRepositoryManager.getInstance(project); } | getRepositoryManager |
43,797 | void () { saveAllDocuments(); Map<GitRepository, GitCommandResult> results = new HashMap<>(); try (AccessToken ignore = DvcsUtil.workingTreeChangeStarted(myProject, GitBundle.message(myPresentation.activityName))) { for (Map.Entry<GitRepository, Hash> entry : myCommits.entrySet()) { GitRepository repository = entry.get... | execute |
43,798 | GitCommandResult (@NotNull GitLocalChangesWouldBeOverwrittenDetector detector, final @NotNull GitRepository repository, @NotNull @NlsSafe String target) { Collection<String> absolutePaths = toAbsolute(repository.getRoot(), detector.getRelativeFilePaths()); List<Change> affectedChanges = findLocalChangesForPaths(myProje... | proposeSmartReset |
43,799 | void (@NotNull Map<GitRepository, GitCommandResult> results) { Map<GitRepository, GitCommandResult> successes = new HashMap<>(); Map<GitRepository, GitCommandResult> errors = new HashMap<>(); for (Map.Entry<GitRepository, GitCommandResult> entry : results.entrySet()) { GitCommandResult result = entry.getValue(); GitRep... | notifyResult |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.