Преглед изворни кода

Fixes #359 - Show changes of an added file in the first commit

main
Eric Amodio пре 6 година
родитељ
комит
97e83ff431
2 измењених фајлова са 3 додато и 0 уклоњено
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -0
      src/gitService.ts

+ 1
- 0
CHANGELOG.md Прегледај датотеку

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Adds a tree layout option to tags in the *GitLens* explorer — closes [#358](https://github.com/eamodio/vscode-gitlens/issues/358)
### Fixed
- Fixes [#359](https://github.com/eamodio/vscode-gitlens/issues/359) - Show changes of an added file in the first commit
- Fixes issue where comparing previous revision during a merge/rebase conflict failed to show the correct contents
- Fixes various issues when not on a branch

+ 2
- 0
src/gitService.ts Прегледај датотеку

@ -1337,6 +1337,8 @@ export class GitService extends Disposable {
async getVersionedFile(repoPath: string | undefined, fileName: string, sha: string | undefined) {
Logger.log(`getVersionedFile('${repoPath}', '${fileName}', '${sha}')`);
if (sha === GitService.deletedSha) return undefined;
if (!sha || (Git.isUncommitted(sha) && !Git.isStagedUncommitted(sha))) {
if (await this.fileExists(repoPath!, fileName)) return fileName;

Loading…
Откажи
Сачувај