浏览代码

Shortens shas for display in explorer UIs

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

+ 1
- 1
src/gitService.ts 查看文件

@ -693,7 +693,7 @@ export class GitService extends Disposable {
private static _toReferenceGitContentUri(commit: GitCommit, scheme: DocumentSchemes, commitCount: number, data: IGitUriData) {
const pad = (n: number) => ('0000000' + n).slice(-('' + commitCount).length);
const ext = path.extname(data.fileName);
const uriPath = `${path.relative(commit.repoPath, data.fileName.slice(0, -ext.length))}/${commit.sha}${ext}`;
const uriPath = `${path.relative(commit.repoPath, data.fileName.slice(0, -ext.length))}/${commit.shortSha}${ext}`;
let message = commit.message;
if (message.length > 50) {

正在加载...
取消
保存