Gitty
{ appSettingsOpen = true; }} onOpenHelp={openHelp} language={appLanguage} />
activeView === "repository" && sameRepoPath(activeRepoPath, path)} onSelect={selectRepoTab} onClose={closeRepoTab} onContextMenu={openRepoTabContextMenu} onAdd={chooseRepositoryFolder} /> {#if workspaceActive} {/if} {#if repoTabContextMenu} {@const menu = repoTabContextMenu} {@const contextTab = repoTabs.find((tab) => sameRepoPath(tab.path, menu.path))} {@const contextIndex = repoTabIndex(menu.path)} {#if contextTab} {/if} {/if} {#if errorMessage} {#key errorMessage}
{/key} {/if} {#if operation && operation !== "Opening repository" && !hasRepository}
{/if} {#if workspaceActive && mergeInProgress}
{:else if workspaceActive && hasConflicts && !rebaseInProgress && !cherryPickInProgress} {/if} {#if workspaceActive && rebaseInProgress}
{/if} {#if workspaceActive && cherryPickInProgress}
{/if} {#if activeView === "management"}
Repository Management

Repositories

Open repositories

{openRepoRows.length}
{#if openRepoRows.length === 0}
No open repositories.
{:else}
{#each openRepoRows as repo (repo.path)}
{/each}
{/if}

Recent repositories

{recentRepoRows.length}
{#if recentRepoRows.length === 0}
No recent repositories.
{:else}
{#each recentRepoRows as repo (repo.path)}
{/each}
{/if}

Favorites

{favoriteRepoRows.length}
{#if favoriteRepoRows.length === 0}
Mark repositories with the star to keep them here.
{:else}
{#each favoriteRepoRows as repo (repo.path)}
{/each}
{/if}
{:else}
{#if status?.upstream}{status.upstream}{/if} {status?.ahead ?? 0} ahead {status?.behind ?? 0} behind
{ aiSettingsOpen = true; }} onToggleAmend={toggleAmendMode} onUndoLastCommit={undoLastCommitChange} />
{/if}
{#if workspaceActive} {status?.clean ? "Working tree clean" : `${changedFiles.length} changed ${changedFiles.length === 1 ? "file" : "files"}`} {/if} {#if workspaceActive} ↑ {status?.ahead ?? 0} ↓ {status?.behind ?? 0} Auto {/if} {#if appVersion}Gitty v{appVersion}{/if}
{#if updateToastOpen} {/if} {#if analyticsNoticeOpen} {/if} {#if appSettingsOpen} { appSettingsOpen = false; }} /> {/if} {#if helpOpen} { helpOpen = false; }} /> {/if} {#if aiReviewOpen && aiReviewResult} { aiReviewOpen = false; }} /> {/if} {#if linePatchOpen && linePatchFile} {/if} {#if blameOpen} {/if} {#if pendingDiscard} {/if} {#if globalSearchOpen} {/if} {#if newBranchCommit} { newBranchCommit = null; }} /> {/if} {#if renameBranchTarget} { renameBranchTarget = null; }} /> {/if} {#if deleteBranchTarget} {/if} {#if aiSettingsOpen} { aiSettingsOpen = false; }} /> {/if} {#if interactiveRebaseOpen} { if (!isBusy) interactiveRebaseOpen = false; }} /> {/if} {#if reflogOpen} entry.selector === "HEAD@{0}")?.hash ?? ""} isLoading={reflogLoading} {isBusy} {operation} error={reflogError} onPreview={previewReflogEntry} onRestore={recoverReflogEntry} onClose={() => { if (!isBusy) reflogOpen = false; }} /> {/if} {#if compareSelectOpen} { compareFrom = val; }} onCompareToChange={(val) => { compareTo = val; }} onCompare={compareSelectedCommits} onClose={() => { compareSelectOpen = false; }} /> {/if} {#if compareDialogOpen && comparison} {/if} {#if credDialogOpen && credDialogAction} { credDialogOpen = false; credDialogAction = null; credDialogError = ""; credDialogKey = null; }} /> {/if} {#if syncSettingsOpen} branch.name)} currentBranch={status?.current_branch ?? ""} currentUpstream={status?.upstream ?? ""} strategy={pullStrategy} {selectedRemote} {isBusy} language={appLanguage} onSaveSync={saveSyncSettings} onAddRemote={addSyncRemote} onUpdateRemote={updateSyncRemote} onRemoveRemote={removeSyncRemote} onClose={() => { if (!isBusy) syncSettingsOpen = false; }} /> {/if} {#if cloneDialogOpen} { if (!isBusy) cloneDialogOpen = false; }} /> {/if} {#if openingRepo} {/if} {#if cloningRepo} {/if} {#if resolveDialogOpen} { resolveDialogOpen = false; }} onSelectFile={selectConflictFile} onMarkResolved={handleMarkResolved} onApply={applyPreparedResolutions} /> {/if}