feat: show staged and unstaged status details

This commit is contained in:
Dandaedre 2026-09-21 00:42:18 +02:00
parent 0b9fba78a0
commit d841899545
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 4 additions and 0 deletions

View File

@ -107,9 +107,13 @@ pub fn status() -> Result<(), AppError> {
);
println!("└─ Next epoch {}", workspace.manifest.next_epoch_id);
if workspace.has_staged_changes() {
println!("\nStaged changes");
print_diff(&workspace.head, &workspace.index.world);
println!("Use `efo diff --staged` to review the next commit.");
}
if workspace.has_unstaged_changes() {
println!("\nUnstaged changes");
print_diff(&workspace.index.world, &workspace.worktree.world);
println!("Use `efo diff` to review edits, then `efo stage ...`.");
}
Ok(())