mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] IDEA-78347 Use --full-history --simplify-merges for file history
This will solve the issue of hiding commit+its revert from Git, but will avoid showing unrelated merges.
This commit is contained in:
@@ -355,7 +355,7 @@ public class GitHistoryUtils {
|
||||
private static GitLineHandler getLogHandler(Project project, VirtualFile root, GitLogParser parser, FilePath path, String lastCommit, String... parameters) {
|
||||
final GitLineHandler h = new GitLineHandler(project, root, GitCommand.LOG);
|
||||
h.setStdoutSuppressed(true);
|
||||
h.addParameters("--name-status", parser.getPretty(), "--encoding=UTF-8", lastCommit);
|
||||
h.addParameters("--name-status", parser.getPretty(), "--encoding=UTF-8", "--full-history", "--simplify-merges", lastCommit);
|
||||
if (parameters != null && parameters.length > 0) {
|
||||
h.addParameters(parameters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user