From 7c01f40b3c2d8b04689dfcc3d50885378392188c Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 17 Mar 2017 19:07:31 -0400 Subject: [PATCH] Shortens shas for display in explorer UIs --- src/gitService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitService.ts b/src/gitService.ts index cd2fd02..50ac4b1 100644 --- a/src/gitService.ts +++ b/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) {