mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - truncate commit hashes before running git log (#228643)
This commit is contained in:
@@ -203,8 +203,9 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
|
||||
return [];
|
||||
}
|
||||
|
||||
// Deduplicate refNames
|
||||
const refNames = Array.from(new Set<string>(options.historyItemRefs));
|
||||
// Deduplicate refNames and truncate them to 10 characters
|
||||
const refNames = Array.from(new Set<string>(options.historyItemRefs))
|
||||
.map(ref => ref.substring(0, 10));
|
||||
|
||||
let logOptions: LogOptions = { refNames, shortStats: true };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user