{#snippet commitsColumn()} {#if commitList.length > 0}
{#snippet leftHeader()}
{commitList.length} {pluralize("commit", commitList.length)} on base
{/snippet}
{#each commitList as commit} {@const active = isActiveCommit(commit.id)} {@const toggle = () => { if (active) { // Keep the sole commit selected; there's nothing else to show. if (commitList.length === 1) return; selectRevision({ headId: revision.head, baseId: revision.base, }); } else { selectRevision({ headId: commit.id, baseId: commit.parents[0], commitId: commit.id, commit, }); } void scrollToDiff(); }}
{#if commit.parents.length > 0} {#await cachedDiffStats(rid, commit.parents[0], commit.id) then commitStats} {commitStats.filesChanged} +{commitStats.insertions} -{commitStats.deletions} {/await} {/if} {#if commit.id === revision.head} {/if} {#if active && commitList.length > 1} {/if}
{/each}
{/if} {/snippet} {#snippet diffHeader()}
{#if chrome} {@render chrome()} {/if}
{/snippet} {#snippet filesHeader()} {#if showRevisionDescription || canEditDescription} {#if editingDescription}
{ await onSaveDescription?.(comment, Array.from(embeds.values())); editingDescription = false; }} close={() => (editingDescription = false)} />
{:else}
{#if showRevisionDescription} {:else} No description {/if}
{#if descriptionOverflows}
{/if} {#if canEditDescription}
{/if}
{/if} {/if}
{#if diffFailed} Failed to load the changes. {:else if stats} {stats.filesChanged} {pluralize("file", stats.filesChanged)} modified with {stats.insertions} {pluralize("insertion", stats.insertions)} and {stats.deletions} {pluralize("deletion", stats.deletions)} {:else} Loading… {/if}
{#if selectedCommitData}
{selectedCommitData.summary}
{#if selectedCommitData.message.trim() !== selectedCommitData.summary.trim()}
{selectedCommitData.message
              .replace(selectedCommitData.summary, "")
              .trim()}
{/if}
{/if}
{/snippet} getDiffText(rid, base, head, 3, path)} {collapsedPaths} {reviewedPaths} onToggleReviewed={draftReviewId ? path => draftReviewStorage.toggleCheckedFile(draftReviewId, path) : undefined} {commentCounts} {highlightedCommentId} codeComments={diffCodeComments} commentCommit={isRevisionDiff ? head : undefined} header={diffHeader} overlayLeft={commitsColumn} {filesHeader} stickyTop={tabs} />