Do not show empty trees for staged and unstaged commit entries