Git - truncate commit hashes before running git log (#228643)

This commit is contained in:
Ladislau Szomoru
2024-09-15 04:50:20 +02:00
committed by GitHub
parent 83285ac8d9
commit 26ae4519ca
+3 -2
View File
@@ -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 };