mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 14:10:29 +00:00
fix: include selected changes diff only
This commit is contained in:
parent
6641daf6fd
commit
3abd981b49
2 changed files with 32 additions and 8 deletions
|
|
@ -12,7 +12,6 @@ import com.intellij.openapi.actionSystem.AnActionEvent;
|
|||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.openapi.vcs.VcsDataKeys;
|
||||
import com.intellij.openapi.vcs.VcsException;
|
||||
import com.intellij.vcs.commit.CommitWorkflowUi;
|
||||
|
|
@ -113,8 +112,14 @@ public class GenerateGitCommitMessageAction extends AnAction {
|
|||
return "";
|
||||
}
|
||||
|
||||
var stagedGitDiff = String.join("\n", GitUtil.getStagedDiff(project, repository));
|
||||
var unstagedGitDiff = String.join("\n", GitUtil.getUnstagedDiff(project, repository));
|
||||
var stagedGitDiff = String.join("\n", GitUtil.getStagedDiff(
|
||||
project,
|
||||
repository,
|
||||
changes.getIncludedVersionedFilePaths()));
|
||||
var unstagedGitDiff = String.join("\n", GitUtil.getUnstagedDiff(
|
||||
project,
|
||||
repository,
|
||||
changes.getIncludedUnversionedFilePaths()));
|
||||
var newFilesContent =
|
||||
getNewFilesDiff(projectBasePath, changes.getIncludedUnversionedFilePaths());
|
||||
return Map.of(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue