{scopeLabel}

{displayPath}

{isGerman ? "Öffnen mit" : "Open with"}
{#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}
0} class="line-patch-selection-bar">
{#if selectedCount > 0} {selectedCount} {selectedCount === 1 ? "line" : "lines"} selected Shift-click to select a range. {:else} Select changed lines Choose individual additions or deletions below. {/if}
{#if selectedCount > 0}
{/if}
{#each parsed.hunks as hunk (hunk.id)}
{hunk.header}
{#if staged} {:else} {/if}
{#each hunk.lines as line (line.id)}
{#if line.kind === "add" || line.kind === "delete"} {:else} {/if} {line.oldLine ?? ""} {line.newLine ?? ""} {linePrefix(line)} {lineBody(line)}
{/each}
{/each}
{#each parsed.hunks as hunk, index (hunk.id)} {/each}
{/if}