{scopeLabel}

{displayPath}

{#if isLoading}
Loading patch...
{:else if error}
{error}
{:else if !patch.trim()}
No line patch available for this file.
{:else if parsed.binary || parsed.hunks.length === 0}
This change cannot be split into text lines.
{:else}
{#each parsed.hunks as hunk (hunk.id)}
{hunk.header}
{#if staged} {:else} {/if}
{#each hunk.lines as line (line.id)}
{linePrefix(line)} {lineBody(line)}
{/each}
{/each}
{/if}