Change:
Testing the commit in the outgoing section Notice the empty square in All Changes <img width="429" alt="image" src=""
Diff statistics badge will always contain the number of files: <img width="474" alt="image" src=""

Discussion:
description: commit.authorName, icon: new ThemeIcon('git-commit'), timestamp: commit.authorDate?.getTime(), <del> statistics: commit.shortStat </del> <ins> statistics: commit.shortStat ?? { files: 0, insertions: 0, deletions: 0 }, </ins> }; }));

color: var(--vscode-scm-historyItemDeletionsForeground); } <ins> .scm-view .monaco-list-row .history-item .stats-container.hidden, .scm-view .monaco-list-row .history-item .stats-container > .insertions-label.hidden, .scm-view .monaco-list-row .history-item .stats-container > .deletions-label.hidden { display: none; } </ins> .scm-view .monaco-list-row .history-item-group .monaco-icon-label .icon-container, .scm-view .monaco-list-row .history-item .monaco-icon-label .icon-container { display: flex;

const historyItem = node.element; if (historyItem.statistics) { <del> const statsAriaLabel: string[] = []; if (historyItem.statistics?.files) { const filesDescription = historyItem.statistics.files === 1 ? localize('fileChanged', "file changed") : localize('filesChanged', "files changed"); statsAriaLabel.push(`${historyItem.statistics.files} ${filesDescription}`); } if (historyItem.statistics?.insertions) { const insertionsDescription = historyItem.statistics.insertions === 1 ? localize('insertion', "insertion{0}", '(+)') : localize('insertions', "insertions{0}", '(+)'); statsAriaLabel.push(`${historyItem.statistics.insertions} ${insertionsDescription}`); } if (historyItem.statistics?.deletions) { const deletionsDescription = historyItem.statistics.deletions === 1 ? localize('deletion', "deletion{0}", '(-)') : localize('deletions', "deletions{0}", '(-)'); statsAriaLabel.push(`${historyItem.statistics.deletions} ${deletionsDescription}`); } const statsTitle = statsAriaLabel.join(', '); </del> <ins> const statsAriaLabel: string[] = [ historyItem.statistics.files === 1 ? localize('fileChanged', "{0} file changed", historyItem.statistics.files) : localize('filesChanged', "{0} files changed", historyItem.statistics.files), historyItem.statistics.insertions === 1 ? localize('insertion', "{0} insertion{1}", historyItem.statistics.insertions, '(+)') : historyItem.statistics.insertions > 1 ? localize('insertions', "{0} insertions{1}", historyItem.statistics.insertions, '(+)') : '', historyItem.statistics.deletions === 1 ? localize('deletion', "{0} deletion{1}", historyItem.statistics.deletions, '(-)') : historyItem.statistics.deletions > 1 ? localize('deletions', "{0} deletions{1}", historyItem.statistics.deletions, '(-)') : '' ]; const statsTitle = statsAriaLabel .filter(l => l !== '').join(', '); </ins> templateData.statsContainer.title = statsTitle; templateData.statsContainer.setAttribute('aria-label', statsTitle); <del> templateData.filesLabel.textContent = historyItem.statistics.files > 0 ? historyItem.statistics.files.toString() : ''; </del> <ins> templateData.filesLabel.textContent = historyItem.statistics.files.toString(); </ins> templateData.insertionsLabel.textContent = historyItem.statistics.insertions > 0 ? `+${historyItem.statistics.insertions}` : ''; <del> templateData.deletionsLabel.textContent = historyItem.statistics.deletions > 0 ? `-${historyItem.statistics.deletions}` : ''; </del> <ins> templateData.insertionsLabel.classList.toggle('hidden', historyItem.statistics.insertions === 0); </ins> <del> templateData.statsContainer.style.display = ''; } else { templateData.statsContainer.style.display = 'none'; </del> <ins> templateData.deletionsLabel.textContent = historyItem.statistics.deletions > 0 ? `-${historyItem.statistics.deletions}` : ''; templateData.deletionsLabel.classList.toggle('hidden', historyItem.statistics.deletions === 0); </ins> } <ins> templateData.statsContainer.classList.toggle('hidden', historyItem.statistics === undefined); </ins> } disposeElement(element: ITreeNode<SCMHistoryItemTreeElement, void>, index: number, templateData: HistoryItemTemplate, height: number | undefined): void {