mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
Git - Only show "All Changes" node if there is more than one incoming/outgoing commit (#202021)
This commit is contained in:
parent
1a7ec6aea2
commit
322931b0fc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue