-
-
+
+
+
+
+
-
Unstaged{unstagedCount}
+
+
+ {#each changedFiles.filter((file) => file.unstaged !== null) as file (`unstaged:${fileKey(file)}`)}
+ {@const stageTargets = selectedStageTargets(file)}
+
+
+ {statusLabel(file.unstaged)}
+
+ {/each}
+ {#if unstagedCount === 0}
+
+
+
+
+
+ No unstaged changes.
{/if} +
-
{/if}
-
+
- Staged
- {statusLabel(file.staged)}
+
+
+
+
-
- {/each}
+
+ {/each}
+ {#if stagedCount === 0}Staged{stagedCount}
+
+
+ {#each changedFiles.filter((file) => file.staged !== null) as file (`staged:${fileKey(file)}`)}
+ {@const unstageTargets = selectedUnstageTargets(file)}
+
+
+ {statusLabel(file.staged)}
+
-
-
+
+
+
-
- {#if file.staged}
- {@const unstageTargets = selectedUnstageTargets(file)}
-
-
-
- {:else}
- No staged change
- {/if}
-
-
-
-
- Unstaged
- {statusLabel(file.unstaged)}
-
-
- {#if file.unstaged}
- {@const stageTargets = selectedStageTargets(file)}
-
-
-
- {:else}
- No unstaged change
- {/if}
-
- Stage files to include them in the next commit.
{/if} +