feat: show staged and unstaged status details
This commit is contained in:
parent
0b9fba78a0
commit
d841899545
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Reference in New Issue