Git - Only show "All Changes" node if there is more than one incoming/outgoing commit (#202021)

This commit is contained in:
Ladislau Szomoru 2024-01-08 17:45:44 +01:00 committed by GitHub
parent 1a7ec6aea2
commit 322931b0fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
await ensureEmojis();
const historyItems = commits.length === 0 ? [] : [summary];
const historyItems = commits.length < 2 ? [] : [summary];
historyItems.push(...commits.map(commit => {
const newLineIndex = commit.message.indexOf('\n');
const subject = newLineIndex !== -1 ? commit.message.substring(0, newLineIndex) : commit.message;