diff --git a/src/vcs.rs b/src/vcs.rs index 5bab0e3..99da7f1 100644 --- a/src/vcs.rs +++ b/src/vcs.rs @@ -106,11 +106,12 @@ impl Vcs { let mut once = true; for project in &self.projects { - if once { - println!("\n{}\n", "** Projects with uncommitted changes **".italic()); - once = false; - } if !project.repo.uncommitted_changes()?.is_empty() { + if once { + println!("\n{}\n", "** Projects with uncommitted changes **".italic()); + once = false; + } + println!( "{}", project.display(ProjectDisplayOptions::Changes.into())?