Browse Source

Fixes #1204 - files comparison was backwards

main
Eric Amodio 4 years ago
parent
commit
4978e1ebf9
3 changed files with 9 additions and 3 deletions
  1. +6
    -0
      CHANGELOG.md
  2. +2
    -2
      src/views/nodes/compareBranchNode.ts
  3. +1
    -1
      src/views/nodes/compareResultsNode.ts

+ 6
- 0
CHANGELOG.md View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes [#1204](https://github.com/eamodio/vscode-gitlens/issues/1204) - Compare file changes: "new" and "old" sides of the compare are backwards
## [11.0.4] - 2020-11-22
### Fixed

+ 2
- 2
src/views/nodes/compareBranchNode.ts View File

@ -119,8 +119,8 @@ export class CompareBranchNode extends ViewNode
this.view,
this,
this.uri.repoPath!,
this.branch.ref,
this.compareWithWorkingTree ? '' : this._compareWith.ref || 'HEAD',
this._compareWith.ref || 'HEAD',
this.compareWithWorkingTree ? '' : this.branch.ref,
this.getFilesQuery.bind(this),
undefined,
{

+ 1
- 1
src/views/nodes/compareResultsNode.ts View File

@ -125,8 +125,8 @@ export class CompareResultsNode extends ViewNode {
this.view,
this,
this.uri.repoPath!,
this._ref.ref,
this._compareWith.ref,
this._ref.ref,
this.getFilesQuery.bind(this),
undefined,
{

Loading…
Cancel
Save