mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitChangeUtils.showDiff: correct the order of revisions for Changes parsing.
This commit is contained in:
@@ -405,7 +405,7 @@ public final class GitBranchOperationsProcessor {
|
||||
@NotNull
|
||||
private static Collection<Change> loadTotalDiff(@NotNull GitRepository repository, @NotNull String branchName) {
|
||||
try {
|
||||
return GitChangeUtils.getDiff(repository.getProject(), repository.getRoot(), null, branchName, null);
|
||||
return GitChangeUtils.getDiff(repository.getProject(), repository.getRoot(), "HEAD", branchName, null);
|
||||
}
|
||||
catch (VcsException e) {
|
||||
// we treat it as critical and report an error
|
||||
|
||||
@@ -419,7 +419,7 @@ public class GitChangeUtils {
|
||||
String range = firstRevision == null ? nextRevision : firstRevision + ".." + nextRevision;
|
||||
String output = getDiffOutput(project, root, range, dirtyPaths);
|
||||
GitRevisionNumber thisRevision = firstRevision == null ? null : loadRevision(project, root, firstRevision);
|
||||
parseChanges(project, root, thisRevision, loadRevision(project, root, nextRevision), output, changes, Collections.<String>emptySet());
|
||||
parseChanges(project, root, loadRevision(project, root, nextRevision), thisRevision, output, changes, Collections.<String>emptySet());
|
||||
return changes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user