buildPatchHtml(treeItem = {}) {
    const { action, previous, filesChanged: files, additions, deletions } = treeItem.patch;
    let patch = '';
    patch += action === 'added' ? '<span class="text-green">added</span>' : '';
    patch += action === 'renamed' ? `<span class="text-green" title="${previous}">renamed</span>` : '';
    patch += action === 'removed' ? `<span class="text-red" title="${previous}">removed</span>` : '';
    patch += files ? `<span class='gitmaster-patch-files'>${files} ${files === 1 ? 'file' : 'files'}</span>` : '';
    patch += additions !== 0 ? `<span class="text-green">+${additions}</span>` : '';
    patch += deletions !== 0 ? `<span class="text-red">-${deletions}</span>` : '';

    return patch;
  }
@param {HTML Text} patch
@param {Object} treeItem

Return the patch Html for tree item