Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
43,600 | VcsUser () { return myCommitInfo.getAuthorUser(); } | getAuthorUser |
43,601 | VirtualFile () { return myFile; } | getFile |
43,602 | VcsKey () { return GitVcs.getKey(); } | getVcsKey |
43,603 | boolean (@NotNull VcsRevisionNumber number) { if (!myFile.isInLocalFileSystem()) return false; final VcsRevisionNumber currentCurrentRevision = myVcs.getDiffProvider().getCurrentRevision(myFile); return myBaseRevision != null && !myBaseRevision.equals(currentCurrentRevision); } | isBaseRevisionChanged |
43,604 | CurrentFileRevisionProvider () { return new GitCurrentFileRevisionProvider(); } | getCurrentFileRevisionProvider |
43,605 | PreviousFileRevisionProvider () { return new GitPreviousFileRevisionProvider(); } | getPreviousFileRevisionProvider |
43,606 | AuthorsMappingProvider () { return new GitAuthorsMappingProvider(); } | getAuthorsMappingProvider |
43,607 | RevisionsOrderProvider () { return new GitRevisionsOrderProvider(); } | getRevisionsOrderProvider |
43,608 | RevisionChangesProvider () { return new GitRevisionChangesProvider(); } | getRevisionsChangesProvider |
43,609 | LineModificationDetailsProvider () { return new GitLineModificationDetailsProvider(); } | getLineModificationDetailsProvider |
43,610 | List<List<VcsRevisionNumber>> () { return myOrderedRevisions; } | getOrderedRevisions |
43,611 | String () { return ActionsBundle.message("action.Annotate.with.Blame.text"); } | getActionName |
43,612 | boolean (@NotNull FilePath path, @NotNull VcsRevisionNumber revisionNumber) { return revisionNumber instanceof GitRevisionNumber && GitContentRevision.getRepositoryIfSubmodule(myProject, path) == null; } | isAnnotationValid |
43,613 | void (@NotNull FilePath filePath, @NotNull VcsRevisionNumber revision, GitFileAnnotation fileAnnotation) { myCache.putAnnotation(filePath, GitVcs.getKey(), revision, cacheData(fileAnnotation)); } | cache |
43,614 | void (@NotNull VirtualFile root, @NotNull GitFileAnnotation annotation) { VcsLogManager logManager = VcsProjectLog.getInstance(myProject).getLogManager(); if (logManager == null) return; VcsLogData dataManager = logManager.getDataManager(); IndexDataGetter getter = dataManager.getIndex().getDataGetter(); if (getter == ... | loadCommitMessagesFromLog |
43,615 | void (@NotNull GitFileAnnotation fileAnnotation) { List<VcsFileRevision> fileRevisions = BackgroundTaskUtil.computeInBackgroundAndTryWait( () -> { VirtualFile file = fileAnnotation.getFile(); FilePath filePath = VcsUtil.getFilePath(file); VcsRevisionNumber currentRevision = fileAnnotation.getCurrentRevision(); GitRepos... | loadFileHistoryInBackground |
43,616 | GitFileAnnotation (@NotNull VirtualFile file, @Nullable VcsRevisionNumber revisionNumber, @NotNull CachedData data) { return new GitFileAnnotation(myProject, file, revisionNumber, data.lines); } | restoreFromCache |
43,617 | void (@NlsContexts.ProgressText @Nullable String text) { ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator(); if (progress != null) progress.setText(text); } | setProgressIndicatorText |
43,618 | CachedData (@NotNull GitFileAnnotation annotation) { return new CachedData(annotation.getLines()); } | cacheData |
43,619 | void (@NotNull Project project, @NotNull Disposable disposable) { project.getMessageBus().connect(disposable).subscribe(GitRepository.GIT_REPO_CHANGE, new GitRepositoryChangeListener() { @Override public void repositoryChanged(@NotNull GitRepository repository) { final VcsAnnotationRefresher refresher = BackgroundTaskU... | registerListener |
43,620 | void (@NotNull GitRepository repository) { final VcsAnnotationRefresher refresher = BackgroundTaskUtil.syncPublisher(project, VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED); refresher.dirtyUnder(repository.getRoot()); } | repositoryChanged |
43,621 | JComponent () { String warningText = new HtmlBuilder() .appendRaw(GitBundle.message("text.crlf.fix.dialog.description.warning", HtmlChunk.text(ATTRIBUTE_KEY).code(), HtmlChunk.text(RECOMMENDED_VALUE).code())) .wrapWithHtmlBody().toString(); String proposedFixText = new HtmlBuilder() .appendRaw(GitBundle.message("text.c... | createCenterPanel |
43,622 | boolean () { return myDontWarn.isSelected(); } | dontWarnAgain |
43,623 | GitCrlfProblemsDetector (@NotNull Project project, @NotNull Git git, @NotNull Collection<VirtualFile> files) { return new GitCrlfProblemsDetector(project, git, files); } | detect |
43,624 | Collection<VirtualFile> (@NotNull VirtualFile root, @NotNull Collection<? extends VirtualFile> files) { GitRepository repository = myRepositoryManager.getRepositoryForRoot(root); if (repository == null) { LOG.warn("Repository is null for " + root); return Collections.emptyList(); } Collection<String> interestingAttribu... | findFilesWithoutAttrs |
43,625 | Collection<VirtualFile> (@NotNull Collection<? extends VirtualFile> files) { Collection<VirtualFile> filesWithCrlf = new ArrayList<>(); for (VirtualFile file : files) { ProgressIndicatorProvider.checkCanceled(); String separator = LoadTextUtil.detectLineSeparator(file, true); if (CRLF.equals(separator)) { filesWithCrlf... | findFilesWithCrlf |
43,626 | Collection<VirtualFile> (@NotNull Map<VirtualFile, List<VirtualFile>> filesByRoots) { Collection<VirtualFile> rootsWithIncorrectAutoCrlf = new ArrayList<>(); for (Map.Entry<VirtualFile, List<VirtualFile>> entry : filesByRoots.entrySet()) { VirtualFile root = entry.getKey(); boolean autocrlf = isAutoCrlfSetRight(root); ... | getRootsWithIncorrectAutoCrlf |
43,627 | boolean (@NotNull VirtualFile root) { GitRepository repository = myRepositoryManager.getRepositoryForRoot(root); if (repository == null) { LOG.warn("Repository is null for " + root); return true; } GitCommandResult result = myGit.config(repository, GitConfigUtil.CORE_AUTOCRLF); String value = result.getOutputAsJoinedSt... | isAutoCrlfSetRight |
43,628 | boolean () { return myShouldWarn; } | shouldWarn |
43,629 | void (List<? extends VirtualFile> files, List<? super VcsException> exceptions, RollbackProgressListener listener) { throw new UnsupportedOperationException("Explicit file checkout is not supported by Git."); } | rollbackModifiedWithoutCheckout |
43,630 | void (List<? extends FilePath> files, List<? super VcsException> exceptions, RollbackProgressListener listener) { throw new UnsupportedOperationException("Missing file delete is not reported by Git."); } | rollbackMissingFileDeletion |
43,631 | void (List<? extends Change> changes, List<VcsException> exceptions, @NotNull RollbackProgressListener listener) { HashMap<VirtualFile, List<FilePath>> toUnindex = new HashMap<>(); HashMap<VirtualFile, List<FilePath>> toUnversion = new HashMap<>(); HashMap<VirtualFile, List<FilePath>> toRevert = new HashMap<>(); List<F... | rollbackChanges |
43,632 | void (@NotNull Map<VirtualFile, List<FilePath>> files, @NotNull FilePath file, @NotNull List<? super VcsException> exceptions) { try { VirtualFile root = GitUtil.getRootForFile(myProject, file); List<FilePath> paths = files.computeIfAbsent(root, key -> new ArrayList<>()); paths.add(file); } catch (VcsException e) { exc... | registerFile |
43,633 | void (@NotNull ActionEvent e) { myPushTagsMode.setEnabled(myPushTags.isSelected()); } | actionPerformed |
43,634 | int (int plannedWidth, @NotNull JComponent leftComponent, @NotNull JComponent rightComponent) { return JBUIScale.scale(plannedWidth) - JBInsets.create(rightComponent.getInsets()).left - JBInsets.create(leftComponent.getInsets()).right; } | calcStrutWidth |
43,635 | OptionsPanelPosition () { return OptionsPanelPosition.SOUTH; } | getPosition |
43,636 | UpdatedFiles () { return myUpdatedFiles; } | getUpdatedFiles |
43,637 | GitRemote () { return myRemote; } | getRemote |
43,638 | String () { return mySpec; } | getSpec |
43,639 | boolean () { return myForce; } | isForce |
43,640 | boolean () { return mySetupTracking; } | shouldSetupTracking |
43,641 | boolean () { return mySkipHooks; } | shouldSkipHooks |
43,642 | List<ForceWithLease> () { return myForceWithLease; } | getForceWithLease |
43,643 | ForceMode (boolean force) { if (force) return AdvancedSettings.getBoolean("git.use.push.force.with.lease") ? ForceMode.FORCE_WITH_LEASE : ForceMode.FORCE; return ForceMode.NONE; } | getForceMode |
43,644 | GitPushResult () { PushUpdateSettings updateSettings = readPushUpdateSettings(); Label beforePushLabel = null; Label afterPushLabel = null; Map<GitRepository, String> preUpdatePositions = updateRootInfoAndRememberPositions(); Boolean rebaseOverMergeProblemDetected = null; final Map<GitRepository, GitPushRepoResult> res... | execute |
43,645 | Collection<VirtualFile> (@NotNull Collection<? extends GitRepository> rootsToSearch) { return ContainerUtil.mapNotNull(rootsToSearch, repo -> { PushSpec<GitPushSource, GitPushTarget> pushSpec = myPushSpecs.get(repo); if (pushSpec == null) { // repository is not selected to be pushed, but can be rebased GitPushSource so... | findRootsWithMergeCommits |
43,646 | GitPushOperation (@NotNull List<GitRepository> newRepositories) { Map<GitRepository, PushSpec<GitPushSource, GitPushTarget>> newPushSpec = filter(myPushSpecs, repo -> newRepositories.contains(repo)); return new GitPushOperation(myProject, myPushSupport, newPushSpec, myTagMode, ForceMode.FORCE, mySkipHook); } | deriveForceWithoutLease |
43,647 | boolean (@NotNull Map<GitRepository, GitPushRepoResult> rejected) { boolean pushingToNotTrackedBranch = ContainerUtil.exists(rejected.entrySet(), entry -> { GitRepository repository = entry.getKey(); GitLocalBranch currentBranch = repository.getCurrentBranch(); if (currentBranch == null) return true; GitBranchTrackInfo... | pushingToNotTrackedBranch |
43,648 | boolean (@NotNull Map<GitRepository, GitPushRepoResult> rejected) { boolean pushingNotCurrentBranch = ContainerUtil.exists(rejected.entrySet(), entry -> { GitRepository repository = entry.getKey(); GitLocalBranch currentBranch = repository.getCurrentBranch(); String pushedBranch = entry.getValue().getSourceBranch(); re... | pushingNotCurrentBranch |
43,649 | List<GitRepository> (final @NotNull Map<GitRepository, GitPushRepoResult> results) { return filter(results.keySet(), repository -> results.get(repository).getType() == REJECTED_NO_FF || results.get(repository).getType() == NOT_PUSHED); } | getRejectedAndNotPushed |
43,650 | GitPushResult (@NotNull Map<GitRepository, GitPushRepoResult> allRoots, @NotNull Map<GitRepository, GitUpdateResult> updatedRoots, @NotNull Map<GitRepository, String> preUpdatePositions, @Nullable Label beforeUpdateLabel, @Nullable Label afterUpdateLabel) { Map<GitRepository, GitPushRepoResult> results = new HashMap<>(... | prepareCombinedResult |
43,651 | boolean (@NotNull GitPushNativeResult result) { String sourceRef = result.getSourceRef(); return sourceRef.startsWith("refs/heads/") || HASH_REGEX.matcher(sourceRef).matches(); } | isBranch |
43,652 | boolean (@NotNull GitPushNativeResult result) { String sourceRef = result.getSourceRef(); return HASH_REGEX.matcher(sourceRef).matches(); } | isHash |
43,653 | boolean (@NotNull GitPushNativeResult result) { String sourceRef = result.getSourceRef(); return sourceRef.startsWith(HEAD); } | isHeadRelativeReference |
43,654 | int (@NotNull VirtualFile root, @NotNull GitPushNativeResult result) { if (result.getType() != GitPushNativeResult.Type.SUCCESS) { return -1; } String range = result.getRange(); if (range == null) { LOG.error("Range of pushed commits not reported in " + result); return -1; } try { return GitHistoryUtils.history(myProje... | collectNumberOfPushedCommits |
43,655 | void (@NotNull UpdatedFiles updatedFiles, @NotNull GitRepository repository, @NotNull String preUpdatePosition) { try { new MergeChangeCollector(myProject, repository, new GitRevisionNumber(preUpdatePosition)).collect(updatedFiles); } catch (VcsException e) { LOG.info(e); } } | collectUpdatedFiles |
43,656 | ResultWithOutput (@NotNull GitRepository repository, @NotNull PushSpec<GitPushSource, GitPushTarget> pushSpec) { GitPushSource pushSource = pushSpec.getSource(); GitPushTarget pushTarget = pushSpec.getTarget(); GitLocalBranch sourceBranch = pushSource.getBranch(); GitRemoteBranch targetBranch = pushTarget.getBranch(); ... | doPush |
43,657 | String (@NotNull GitPushSource source, @NotNull GitPushTarget target, boolean setUpstream) { boolean needFullRefName = setUpstream || !source.isBranchRef(); String remoteBranchName = target.getBranch().getNameForRemoteOperations(); String targetRef = needFullRefName && !remoteBranchName.startsWith("refs/") ? GitBranch.... | createPushSpec |
43,658 | boolean (@NotNull GitRepository repository, final @NotNull GitLocalBranch source) { return ContainerUtil.exists(repository.getBranchTrackInfos(), info -> info.getLocalBranch().equals(source)); } | branchTrackingInfoIsSet |
43,659 | void (@NotNull PushUpdateSettings settings, boolean rebaseOverMergeDetected) { UpdateMethod updateMethod = settings.getUpdateMethod(); if (!rebaseOverMergeDetected && // don't overwrite explicit "rebase" with temporary "merge" caused by merge commits mySettings.getUpdateMethod() != updateMethod && mySettings.getUpdateM... | savePushUpdateSettings |
43,660 | PushUpdateSettings () { UpdateMethod updateMethod = mySettings.getUpdateMethod(); if (updateMethod == UpdateMethod.BRANCH_DEFAULT) { // deliberate limitation: we have only 2 buttons => choose method from the 1st repo if different updateMethod = GitUpdater.resolveUpdateMethod(myPushSpecs.keySet().iterator().next()); } r... | readPushUpdateSettings |
43,661 | UpdateMethod (PushRejectedExitCode exitCode) { return switch (exitCode) { case MERGE -> UpdateMethod.MERGE; case REBASE -> UpdateMethod.REBASE; default -> throw new IllegalStateException("Unexpected exit code: " + exitCode); }; } | convertUpdateMethodFromDialogExitCode |
43,662 | GitUpdateResult (@NotNull Collection<? extends GitRepository> rootsToUpdate, @NotNull UpdateMethod updateMethod, boolean checkForRebaseOverMergeProblem) { GitUpdateProcess updateProcess = new GitUpdateProcess(myProject, myProgressIndicator, new HashSet<>(rootsToUpdate), UpdatedFiles.create(), null, checkForRebaseOverMe... | update |
43,663 | void (@NotNull Map<GitRepository, HashRange> newRanges) { for (GitRepository repository : newRanges.keySet()) { HashRange newRange = newRanges.get(repository); HashRange current = myUpdatedRanges.get(repository); HashRange joinedRange = current == null ? newRange : new HashRange(current.getStart(), newRange.getEnd()); ... | joinUpdatedRanges |
43,664 | String () { return "Parsed results: " + parsedResults + "\nCommand output:" + resultOutput; } | toString |
43,665 | boolean () { return this != NONE; } | isForce |
43,666 | void (@NotNull DefaultMutableTreeNode sourceNode, @NotNull MouseEvent event) { if (myRepository.getRemotes().isEmpty()) { showDefineRemoteDialog(); } else { Component eventComponent = event.getComponent(); if (eventComponent != null) { showRemoteSelector(eventComponent, event.getPoint()); } } } | hyperlinkActivated |
43,667 | void (FocusEvent e) { // show in edit mode only if (myTargetEditor.isShowing()) { showRemoteSelector(myRemoteRenderer, new Point(myRemoteRenderer.getLocation())); } } | focusGained |
43,668 | void (@Nullable GitPushTarget target) { myCurrentTarget = target; boolean noRemotes = myRepository.getRemotes().isEmpty(); if (myRepository.isFresh()) { myError = GitBundle.message("push.dialog.target.panel.empty.repository"); } else if (target == null && !noRemotes) { myError = GitBundle.message("push.dialog.target.pa... | updateComponents |
43,669 | void () { GitDefineRemoteDialog dialog = new GitDefineRemoteDialog(myRepository, myGit, GitRemote.ORIGIN, ""); if (dialog.showAndGet()) { addRemoteUnderModal(dialog.getRemoteName(), dialog.getRemoteUrl()); } } | showDefineRemoteDialog |
43,670 | void (final @NotNull String remoteName, final @NotNull String remoteUrl) { ProgressManager.getInstance() .run(new Task.Modal(myRepository.getProject(), GitBundle.message("push.dialog.target.panel.adding.remote"), true) { private GitCommandResult myResult; @Override public void run(@NotNull ProgressIndicator indicator) ... | addRemoteUnderModal |
43,671 | void (@NotNull ProgressIndicator indicator) { indicator.setIndeterminate(true); myResult = myGit.addRemote(myRepository, remoteName, remoteUrl); myRepository.update(); } | run |
43,672 | void () { if (myResult.success()) { updateComponents(myPushSupport.getDefaultTarget(myRepository, mySource)); if (myFireOnChangeAction != null) { myFireOnChangeAction.run(); } } else { String message = GitBundle.message("push.dialog.target.panel.couldnt.add.remote", myResult.getErrorOutputAsHtmlString()); LOG.warn(mess... | onSuccess |
43,673 | void (@NotNull Component component, @NotNull Point point) { List<PopupItem> remotes = getPopupItems(); if (remotes.size() <= 1) { return; } ListPopup popup = new ListPopupImpl(myProject, new BaseListPopupStep<>(null, remotes) { @Override public PopupStep onChosen(@NotNull PopupItem selectedValue, boolean finalChoice) {... | showRemoteSelector |
43,674 | PopupStep (@NotNull PopupItem selectedValue, boolean finalChoice) { return doFinalStep(() -> { if (selectedValue.isDefineRemote()) { showDefineRemoteDialog(); } else { myRemoteRenderer.updateLinkText(selectedValue.getPresentable()); myEventFromRemoteChooser = true; if (!myTargetEditor.isShowing()) { if (!myBranchWasUpd... | onChosen |
43,675 | void (InputEvent e) { super.cancel(e); if (myTargetEditor.isShowing()) { //repaint and force move focus to target editor component GitPushTargetPanel.this.repaint(); IdeFocusManager.getInstance(myProject).requestFocus(myTargetEditor, true); } } | cancel |
43,676 | List<PopupItem> () { List<PopupItem> items = new ArrayList<>(ContainerUtil.map(myRepository.getRemotes(), PopupItem::forRemote)); items.add(PopupItem.DEFINE_REMOTE); return items; } | getPopupItems |
43,677 | void (@NotNull ColoredTreeCellRenderer renderer, boolean isSelected, boolean isActive, @Nullable String forceRenderedText) { SimpleTextAttributes targetTextAttributes = PushLogTreeUtil.addTransparencyIfNeeded(renderer, SimpleTextAttributes.REGULAR_ATTRIBUTES, isActive); if (myError != null) { renderer.append(myError, P... | render |
43,678 | void () { myTargetEditor.setText(getTextFieldText(myCurrentTarget)); } | fireOnCancel |
43,679 | void () { //any changes are senselessly if no remotes if (myError != null || myRepository.getRemotes().isEmpty()) return; String remoteName = myRemoteRenderer.getText(); String branchName = myTargetEditor.getText(); try { GitPushTarget target = GitPushTarget.parse(myRepository, remoteName, branchName); if (!target.equa... | fireOnChange |
43,680 | void (@NotNull Runnable action) { myFireOnChangeAction = action; } | setFireOnChangeAction |
43,681 | List<String> (@NotNull GitRepository repository) { return repository.getBranches().getRemoteBranches().stream(). sorted(REMOTE_BRANCH_COMPARATOR). map(GitRemoteBranch::getNameForRemoteOperations).collect(toList()); } | getTargetNames |
43,682 | int (@NotNull GitRemoteBranch o1, @NotNull GitRemoteBranch o2) { String remoteName1 = o1.getRemote().getName(); String remoteName2 = o2.getRemote().getName(); int remoteComparison = remoteName1.compareTo(remoteName2); if (remoteComparison != 0) { if (remoteName1.equals(GitRemote.ORIGIN)) { return -1; } if (remoteName2.... | compare |
43,683 | void (final @NotNull PushTargetEditorListener listener) { myTargetEditor.addDocumentListener(new DocumentListener() { @Override public void documentChanged(@NotNull DocumentEvent e) { processActiveUserChanges(listener); } }); myTargetEditor.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEv... | addTargetEditorListener |
43,684 | void (@NotNull DocumentEvent e) { processActiveUserChanges(listener); } | documentChanged |
43,685 | void (FocusEvent e) { processActiveUserChanges(listener); } | focusGained |
43,686 | void (HierarchyEvent e) { if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) { if (myTargetEditor.isShowing()) { UndoUtil.enableUndoFor(myTargetEditor.getDocument()); } else { UndoUtil.disableUndoFor(myTargetEditor.getDocument()); } } } | hierarchyChanged |
43,687 | void (@NotNull PushTargetEditorListener listener) { //fire only about user's changes if (myTargetEditor.isShowing()) { listener.onTargetInEditModeChanged(myTargetEditor.getText()); } } | processActiveUserChanges |
43,688 | void (@NotNull String forcedText) { //if targetEditor is now editing by user, it shouldn't be force updated if (!myTargetEditor.isShowing()) { myTargetEditor.setText(forcedText); } } | forceUpdateEditableUiModel |
43,689 | PopupItem (@NotNull GitRemote remote) { return new PopupItem(remote); } | forRemote |
43,690 | String () { return getPresentable(); } | toString |
43,691 | List<Component> () { return List.of(myTargetEditor.getFocusTarget(), myRemoteRenderer); } | getOrderedComponents |
43,692 | Component (Container aContainer, Component aComponent) { if (getPopupItems().size() > 1) { return super.getComponentAfter(aContainer, aComponent); } return aComponent; } | getComponentAfter |
43,693 | Component (Container aContainer, Component aComponent) { if (getPopupItems().size() > 1) { return super.getComponentBefore(aContainer, aComponent); } return aComponent; } | getComponentBefore |
43,694 | List<GitPushNativeResult> (@NotNull List<String> output) { List<GitPushNativeResult> results = new ArrayList<>(); for (String line : output) { Matcher matcher = PATTERN.matcher(line); if (matcher.matches()) { results.add(parseRefResult(matcher, line)); } } return results; } | parse |
43,695 | GitRemoteBranch () { return myRemoteBranch; } | getBranch |
43,696 | boolean () { return isNewBranchCreated(); } | hasSomethingToPush |
43,697 | String () { return myPushingToSpecialRef ? myRemoteBranch.getFullName() : myRemoteBranch.getNameForRemoteOperations(); } | getPresentation |
43,698 | boolean () { return myIsNewBranchCreated; } | isNewBranchCreated |
43,699 | boolean () { return myPushingToSpecialRef; } | isSpecialRef |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.