Git - use --stdin when running git log (#228817)

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

This reverts commit 26ae4519ca.

* Use the --stdin flag when running git log
This commit is contained in:
Ladislau Szomoru
2024-09-17 13:36:14 +02:00
committed by GitHub
parent dea64135bc
commit dfa3888fbd
2 changed files with 10 additions and 8 deletions

View File

@@ -203,9 +203,8 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
return [];
}
// Deduplicate refNames and truncate them to 10 characters
const refNames = Array.from(new Set<string>(options.historyItemRefs))
.map(ref => ref.substring(0, 10));
// Deduplicate refNames
const refNames = Array.from(new Set<string>(options.historyItemRefs));
let logOptions: LogOptions = { refNames, shortStats: true };