Tauri Git Lite
{#if errorMessage} {/if} {#if operation && operation !== "Opening repository"}
{/if}
Current repo

{status?.current_branch ?? "No repository"}

{activeRepoPath || "Enter a path and open a repository."}

{status?.upstream ?? "No upstream"} {status?.ahead ?? 0} ahead {status?.behind ?? 0} behind
Working tree

Status

{stagedCount} staged {unstagedCount} unstaged
{#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}`)}
{displayPath(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}