Workspace

Changes

{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}
UnstagedWorking tree
{unstagedCount}
{#if selectedUnstagedCount > 1} {selectedUnstagedCount} selected {/if} {#if selectedUnstagedCount > 1} {/if}
{#each visibleUnstagedRows as row (`unstaged:${row.kind}:${row.kind === "file" ? fileKey(row.file) : row.path}`)} {#if row.kind === "folder"} {:else} {@const file = row.file} {@const stageTargets = selectedStageTargets(file)}
openStatusContextMenu(event, "unstaged", "file", file.path, [file])}> {statusLabel(file.unstaged)}
{/if} {/each} {#if unstagedCount === 0}

No unstaged changes.

{/if}
StagedNext commit
{stagedCount}
{#if selectedStagedCount > 1} {selectedStagedCount} selected {/if} {#if selectedStagedCount > 1} {/if}
{#each visibleStagedRows as row (`staged:${row.kind}:${row.kind === "file" ? fileKey(row.file) : row.path}`)} {#if row.kind === "folder"} {:else} {@const file = row.file} {@const unstageTargets = selectedUnstageTargets(file)}
openStatusContextMenu(event, "staged", "file", file.path, [file])}> {statusLabel(file.staged)}
{/if} {/each} {#if stagedCount === 0}

Stage files to include them in the next commit.

{/if}
{/if} {#if isBusy && hasRepository}
{operation || "Working"}…
{/if}
{#if statusContextTarget} {/if}