浏览代码

Fixes incorrect file selection on commit file details

main
Eric Amodio 7 年前
父节点
当前提交
83fff1590d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/commands/showQuickCommitFileDetails.ts

+ 5
- 1
src/commands/showQuickCommitFileDetails.ts 查看文件

@ -51,7 +51,11 @@ export class ShowQuickCommitFileDetailsCommand extends ActiveEditorCachedCommand
}
try {
if (args.commit === undefined || (args.commit.type !== 'file' && args.commit.type !== 'stash')) {
if (args.commit === undefined || args.commit.type !== 'file') {
if (args.commit !== undefined) {
workingFileName = undefined;
}
if (args.fileLog !== undefined) {
args.commit = args.fileLog.commits.get(args.sha!);
// If we can't find the commit, kill the fileLog

正在加载...
取消
保存