Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding "Reset to here" action in patch set context menu #416

Open
wants to merge 4 commits into
base: intellij14
Choose a base branch
from

Conversation

brownian-motion
Copy link

No description provided.

Copy link
Owner

@uwolfer uwolfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this! I've added some minor comment. Will test it once these fixed have been cleaned up.

@uwolfer
Copy link
Owner

uwolfer commented Aug 3, 2021

@brownian-motion: Do you think you will find the time to implement my comments?

@brownian-motion
Copy link
Author

Hello, and thanks for looking at this PR so closely! I apologize for taking so long to reply @uwolfer . I'd be happy to implement these changes, and will submit a new commit soon!

@@ -426,6 +427,18 @@ public GitLineHandler compute() {
}
}

public Optional<VcsFullCommitDetails> loadGitCommitInfo(Project project, GitRepository gitRepository, ChangeInfo changeInfo) throws VcsException {
List<GitCommit> history = GitHistoryUtils.history(project, gitRepository.getRoot(), changeInfo.id);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changeInfo.id does not work in my case, it is not a git commit hash.

You can take a look at gerritUtil.getFirstFetchInfo(changeDetails);

@@ -426,6 +427,18 @@ public GitLineHandler compute() {
}
}

public Optional<VcsFullCommitDetails> loadGitCommitInfo(Project project, GitRepository gitRepository, ChangeInfo changeInfo) throws VcsException {
List<GitCommit> history = GitHistoryUtils.history(project, gitRepository.getRoot(), changeInfo.id);
if (history.isEmpty()){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a space before { (here and in other new code places).

@uwolfer
Copy link
Owner

uwolfer commented Jul 27, 2022

@brownian-motion: Do you plan to update this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants