Working tree

Status

{stagedCount} staged {unstagedCount} unstaged
{#if hasRepository && changedFiles.length > 0}
{/if} {#if !hasRepository}
No repository loaded.
{:else if status?.clean}
Working tree is clean.
{:else if changedFiles.length === 0}
No file changes returned.
{:else}
{#each changedFiles as file (`${file.old_path ?? ""}:${file.path}`)}
{fileName(file)}
Staged {statusLabel(file.staged)}
{#if file.staged} {:else} No staged change {/if}
Unstaged {statusLabel(file.unstaged)}
{#if file.unstaged} {:else} No unstaged change {/if}
{/each}
{/if}